Class DefaultPluginRegistry

  • All Implemented Interfaces:
    PluginRegistry, org.springframework.beans.factory.InitializingBean

    public class DefaultPluginRegistry
    extends java.lang.Object
    implements PluginRegistry, org.springframework.beans.factory.InitializingBean
    DefaultPluginRegistry
    Version:
    $Id: $
    Author:
    brozow
    • Constructor Detail

      • DefaultPluginRegistry

        public DefaultPluginRegistry()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • getAllPlugins

        public <T> java.util.Collection<T> getAllPlugins​(java.lang.Class<T> pluginClass)

        getAllPlugins

        Specified by:
        getAllPlugins in interface PluginRegistry
        Type Parameters:
        T - a T object.
        Parameters:
        pluginClass - a Class object.
        Returns:
        a Collection object.
      • getPluginInstance

        public <T> T getPluginInstance​(java.lang.Class<T> pluginClass,
                                       PluginConfig pluginConfig)

        getPluginInstance

        Specified by:
        getPluginInstance in interface PluginRegistry
        Type Parameters:
        T - a T object.
        Parameters:
        pluginClass - a Class object.
        pluginConfig - a PluginConfig object.
        Returns:
        a T object.