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

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    This method will create a new object instance.
    This method is used to get object type.
    void
    setTargetClass(Class targetClass)
    Target class will be passed

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FactoryBean

      public FactoryBean()
  • Method Details

    • setTargetClass

      public void setTargetClass(Class targetClass)
      Target class will be passed
      Parameters:
      targetClass - targetClass
    • createInstance

      protected Object createInstance() throws Exception
      This method will create a new object instance.
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
      Returns:
      Returns object.
      Throws:
      Exception - Throws exceptions produced by failed or interrupted operations.
    • getObjectType

      public Class getObjectType()
      This method is used to get object type.
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean
      Returns:
      Returns the target class.