com.mtgi.analytics.aop.config
Class TemplateBeanDefinitionFactory
java.lang.Object
com.mtgi.analytics.aop.config.TemplateBeanDefinitionFactory
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean
public class TemplateBeanDefinitionFactory
- extends Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.DisposableBean
Bootstraps a bean from one BeanFactory
into another. The intent is that we can
"embed" one Spring bean factory inside another, and use instances of this class to promote
public beans out of the embedded factory.
Not intended to be used directly in spring configuration files, but rather indirectly via
TemplateBeanDefinitionParser
subclasses.
- See Also:
TemplateBeanDefinitionParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateBeanDefinitionFactory
public TemplateBeanDefinitionFactory()
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanName
public void setBeanName(String beanName)
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception