Class FactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean
com.skava.orchestration.configuration.FactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean,org.springframework.beans.factory.InitializingBean
public class FactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean
Factory Bean which creates the bean at runtime
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectThis method will create a new object instance.This method is used to get object type.voidsetTargetClass(Class targetClass) Target class will be passedMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
FactoryBean
public FactoryBean()
-
-
Method Details
-
setTargetClass
Target class will be passed- Parameters:
targetClass- targetClass
-
createInstance
This method will create a new object instance.- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean- Returns:
- Returns object.
- Throws:
Exception- Throws exceptions produced by failed or interrupted operations.
-
getObjectType
This method is used to get object type.- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean- Returns:
- Returns the target class.
-