Interface ExtensionPoint<T>

    • Method Detail

      • addExtension

        void addExtension​(String id,
                          String pluginName,
                          String featureName,
                          Configuration configuration)
                   throws ConfigurationException
        Add an extension to this point. Each implementation knows the meaning of the given configuration.
        Parameters:
        id - the unique identifier of the extension.
        pluginName - Unique identifier for the plugin hosting the extension
        featureName - Unique feature identifier (unique for a given pluginName)
        configuration - the information about the extension to be added
        Throws:
        ConfigurationException - when a configuration problem occurs
      • initializeExtensions

        void initializeExtensions()
                           throws Exception
        Finalize the initialization of the extensions.
        This method is called after all addExtension() calls.
        This is the last step before the actual startup of the application.
        Throws:
        Exception - if something wrong occurs
      • hasExtension

        boolean hasExtension​(String id)
        Returns true if the named extension exists
        Parameters:
        id - the unique id of the extension
        Returns:
        true if the named extension exists
      • getExtension

        T getExtension​(String id)
        Returns the named extension
        Parameters:
        id - the unique id of the extension
        Returns:
        the named extension
      • getExtensionsIds

        Set<StringgetExtensionsIds()
        Returns a Set containing the ids of all known extensions
        Returns:
        a Set containing the ids of all known extensions