Interface IAPIRegistry

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    APIRegistry

    public interface IAPIRegistry
    extends Serializable
    Base interface for an API registry. It has a set of APIDescriptor instances that it can invoke.
    Since:
    8.1.4
    Author:
    Philip Helger
    • Method Detail

      • registerAPI

        void registerAPI​(@Nonnull
                         APIDescriptor aDescriptor)
        Register a new API descriptor. It is the callers responsibility to ensure each API is only registered once.
        Parameters:
        aDescriptor - The descriptor to be registered. May not be null.
      • getAllAPIDescriptors

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsList<IAPIDescriptor> getAllAPIDescriptors()
        Returns:
        A mutable list of all registered descriptors. Never null but maybe empty.