Class DefaultPluginRegistry
- java.lang.Object
-
- org.opennms.netmgt.provision.service.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 Summary
Constructors Constructor Description DefaultPluginRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
<T> java.util.Collection<T>
getAllPlugins(java.lang.Class<T> pluginClass)
getAllPlugins<T> T
getPluginInstance(java.lang.Class<T> pluginClass, PluginConfig pluginConfig)
getPluginInstance
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.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 interfacePluginRegistry
- Type Parameters:
T
- a T object.- Parameters:
pluginClass
- aClass
object.- Returns:
- a
Collection
object.
-
getPluginInstance
public <T> T getPluginInstance(java.lang.Class<T> pluginClass, PluginConfig pluginConfig)
getPluginInstance
- Specified by:
getPluginInstance
in interfacePluginRegistry
- Type Parameters:
T
- a T object.- Parameters:
pluginClass
- aClass
object.pluginConfig
- aPluginConfig
object.- Returns:
- a T object.
-
-