Class AbstractIdentifiedInitializableComponent

All Implemented Interfaces:
Component, DestructableComponent, IdentifiedComponent, InitializableComponent
Direct Known Subclasses:

@ThreadSafe public abstract class AbstractIdentifiedInitializableComponent extends AbstractInitializableComponent implements IdentifiedComponent
Simple implementation of InitializableComponent and IdentifiedComponent.
  • Field Details

  • Constructor Details

    • AbstractIdentifiedInitializableComponent

      public AbstractIdentifiedInitializableComponent()
  • Method Details

    • getId

      @Nullable @NonnullAfterInit public String getId()
      Get the ID of this component.
      Specified by:
      getId in interface IdentifiedComponent
      ID of this component or null
    • setId

      protected void setId(@Nonnull @NotEmpty String componentId)
      Sets the ID of this component. The component must not yet be initialized.
      componentId - ID of the component
    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      This method checks to ensure that the component ID is not null. 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.
      doInitialize in class AbstractInitializableComponent
      ComponentInitializationException - thrown if there is a problem initializing the component