com.ibm.broker.rest

Class ApiProviderFactory

  • java.lang.Object
    • com.ibm.broker.rest.ApiProviderFactory


  • public final class ApiProviderFactory
    extends java.lang.Object
    This class manages instances of classes that implement the ApiProvider interface. Users wishing to load an API description from a file or URL must find the appropriate ApiProvider for that API description (for example, there is an implementation for loading API descriptions using the Swagger 2.0 language). New implementations of the ApiProvider interface can be made available to this class by adding the fully qualified class name to a META-INF/services/com.ibm.broker.rest.ApiProvider file on the class path (see the ServiceLoader documentation).
    Since:
    IBM Integration Bus v10
    • Method Detail

      • instance

        public static ApiProviderFactory instance()
        Get the singleton instance of this class.
        Returns:
        the singleton instance of this class.
      • getAll

        public java.util.List<ApiProvider> getAll()
        Get a list of all available and registered API providers.
        Returns:
        a list of all available and registered API providers.
      • get

        public ApiProvider get(java.lang.String id)
        Get the specified API provider using its ID.
        Parameters:
        id - the ID of the API provider to get.
        Returns:
        the specified API provider, or null if no API provider exists with the specified ID.