Class AbstractInitializableComponent

    • Field Detail

      • isDestroyed

        private boolean isDestroyed
        Whether this component has been destroyed.
      • isInitialized

        private boolean isInitialized
        Whether this component has been initialized.
    • Constructor Detail

      • AbstractInitializableComponent

        public AbstractInitializableComponent()
    • Method Detail

      • isDestroyed

        public final boolean isDestroyed()
        Gets whether this component has been destroyed. Normally, once a component has been destroyed it cannot be used.
        Specified by:
        isDestroyed in interface DestructableComponent
        Returns:
        true iff the component has been destroyed
      • isInitialized

        public boolean isInitialized()
        Gets whether this component is initialized.
        Specified by:
        isInitialized in interface InitializableComponent
        Returns:
        true iff this component is initialized
      • doDestroy

        protected void doDestroy()
        Performs component specific destruction logic. This method is executed within the lock on the object being destroyed. The default implementation of this method is a no-op.
      • doInitialize

        protected void doInitialize()
                             throws ComponentInitializationException
        Performs the initialization of the component. This method is executed within the lock on the object being initialized. The default implementation of this method is a no-op.
        Throws:
        ComponentInitializationException - thrown if there is a problem initializing the component