Class AbstractComponent

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Destroy the component.
      protected abstract void doDestroy()  
      protected abstract void doInitialize()  
      java.lang.String getComponentName()
      Returns the component name.
      void initialize()
      Initialize the component.
      boolean isAvailable()
      Returns whether the component is currently available.
      boolean isDestroyed()
      Returns whether or not the component has been destroyed.
      boolean isDestroying()
      Returns whether the component is being destroyed.
      boolean isInitialized()
      Returns whether or not the component has been initialized.
      • Methods inherited from class java.lang.Object

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

      • AbstractComponent

        public AbstractComponent()
    • Method Detail

      • doInitialize

        protected abstract void doInitialize()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doDestroy

        protected abstract void doDestroy()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Description copied from interface: Component
        Initialize the component.
        Specified by:
        initialize in interface Component
        Throws:
        java.lang.Exception - if the component fails to initialize
      • destroy

        public void destroy()
        Description copied from interface: Component
        Destroy the component.
        Specified by:
        destroy in interface Component
      • isAvailable

        public boolean isAvailable()
        Description copied from interface: Component
        Returns whether the component is currently available.
        Specified by:
        isAvailable in interface Component
        Returns:
        true if the component is currently available
      • isInitialized

        public boolean isInitialized()
        Description copied from interface: Component
        Returns whether or not the component has been initialized.
        Specified by:
        isInitialized in interface Component
        Returns:
        true if the component has been initialized
      • isDestroying

        public boolean isDestroying()
        Description copied from interface: Component
        Returns whether the component is being destroyed.
        Specified by:
        isDestroying in interface Component
        Returns:
        true if the component is being destroyed
      • isDestroyed

        public boolean isDestroyed()
        Description copied from interface: Component
        Returns whether or not the component has been destroyed.
        Specified by:
        isDestroyed in interface Component
        Returns:
        true if the component has been destroyed
      • getComponentName

        public java.lang.String getComponentName()
        Description copied from interface: Component
        Returns the component name.
        Specified by:
        getComponentName in interface Component
        Returns:
        the component name