Interface CreatedBean<T>

    • Method Detail

      • bean

        @NonNull
        T bean()
        Returns:
        The bean
      • id

        BeanIdentifier id()
        Returns an ID that is unique to the bean and can be used to cache the instance if necessary.
        Returns:
        The id
      • close

        void close()
            throws BeanDestructionException
        Destroy the bean entry, performing any shutdown and releasing any dependent objects.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        BeanDestructionException - If an error occurs closing the created bean.