Interface SubsystemRegistry<T extends SubsystemLifecycle>

All Known Implementing Classes:
SubsystemRegistryServiceLoader

public interface SubsystemRegistry<T extends SubsystemLifecycle>
A JenaSubsystemRegistry is a set of objects implementing SubsystemLifecycle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T module)
    Add to the collection.
    boolean
     
    boolean
    isRegistered(T module)
    check whether registered
    void
    Load - perform some kinds of search for SubsystemLifecycle implementations.
    void
    remove(T module)
    Remove from the collection.
    int
     
    Return the registered items in a copied list.
  • Method Details

    • load

      void load()
      Load - perform some kinds of search for SubsystemLifecycle implementations. This is called once in the initialization process.

      The registry must load object of class T. If using the ServiceLoader, the registry implementation will need an object of Class<T>.

    • add

      void add(T module)
      Add to the collection.
    • isRegistered

      boolean isRegistered(T module)
      check whether registered
    • remove

      void remove(T module)
      Remove from the collection.
    • size

      int size()
    • isEmpty

      boolean isEmpty()
    • snapshot

      List<T> snapshot()
      Return the registered items in a copied list. The list is detached from the registry and the caller can mutate it. There is no specific ordering requirement.