Class EmbosserCatalog

    • Constructor Detail

      • EmbosserCatalog

        public EmbosserCatalog()
        Creates a new empty instance. This method is public because it is required by OSGi. In an SPI context, use newInstance()
    • Method Detail

      • newInstance

        public static EmbosserCatalog newInstance()

        Creates a new EmbosserCatalog and populates it using the SPI (java service provider interface).

        In an OSGi context, an instance should be retrieved using the service registry. It will be registered under the EmbosserCatalogService interface.

        Returns:
        returns a new EmbosserCatalog
      • addFactory

        public void addFactory​(EmbosserProvider factory)
        Adds a factory (intended for use by the OSGi framework)
        Parameters:
        factory - the factory to add
      • removeFactory

        public void removeFactory​(EmbosserProvider factory)
        Removes a factory (intended for use by the OSGi framework)
        Parameters:
        factory - the factory to remove
      • get

        public Embosser get​(String identifier)
        Description copied from interface: FactoryCatalog
        Gets the Factory with this identifier
        Specified by:
        get in interface FactoryCatalog<Embosser>
        Parameters:
        identifier - the identifier for the requested Factory
        Returns:
        returns the Factory with this identifier, or null if none is found