Class AbstractAsyncFactoryBean<T>

    • Constructor Detail

      • AbstractAsyncFactoryBean

        protected AbstractAsyncFactoryBean()
      • AbstractAsyncFactoryBean

        protected AbstractAsyncFactoryBean​(ExecutorService executor)
    • Method Detail

      • createObject

        protected abstract T createObject()
                                   throws Exception
        Create a new bean as per getObject().

        The implementation of a singleton bean does not need to use the singleton pattern as this implementation already guarantees it.

        Throws:
        Exception
      • isInitialized

        public final boolean isInitialized()
        Description copied from interface: AsyncFactoryBean
        Indicate if this bean has been initialized or if its initialization is pending.

        This is only meaningful if FactoryBean.isSingleton() is true as otherwise a new, yet to be initialized bean will be returned everytime and this method will always return false.

        Specified by:
        isInitialized in interface AsyncFactoryBean<T>