Class AbstractIdentifiedInitializableComponent

java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
All Implemented Interfaces:
Component, DestructableComponent, IdentifiedComponent, InitializableComponent
Direct Known Subclasses:
AbstractIdentifiableInitializableComponent

@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
      Returns:
      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.
      Parameters:
      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.
      Overrides:
      doInitialize in class AbstractInitializableComponent
      Throws:
      ComponentInitializationException - thrown if there is a problem initializing the component