Interface FactoryBean<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FACTORY_METHOD_NAME  
    • Method Summary

      Modifier and Type Method Description
      T getObject()
      Return an instance (possibly shared or independent) of the object managed by this factory.
    • Field Detail

    • Method Detail

      • getObject

        @AvoidAdvice
        T getObject()
             throws java.lang.Exception
        Return an instance (possibly shared or independent) of the object managed by this factory. As with a BeanFactory, this allows support for both the Singleton and Prototype design pattern.
        Returns:
        an instance of the bean (can be null)
        Throws:
        java.lang.Exception - in case of creation errors