public class PluginsComponentManager extends ThreadSafeComponentManager<Object> implements ComponentManager
ThreadSafeComponentManager
for more details.Modifier and Type | Class and Description |
---|---|
private class |
PluginsComponentManager.ComponentInvocationHandler |
private class |
PluginsComponentManager.ExtensionPointFactory |
private class |
PluginsComponentManager.ProxyComponentFactory |
ThreadSafeComponentManager.ComponentFactory
Modifier and Type | Field and Description |
---|---|
private Map<String,Collection<ExtensionDefinition>> |
_extensionPoints |
(package private) ComponentManager |
_parentManager |
_componentsInitializing, _context, _manager
Constructor and Description |
---|
PluginsComponentManager(ComponentManager parentManager)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExtensionPoint(String pluginName,
String point,
Class<? extends ExtensionPoint> extensionPoint,
Configuration configuration,
Collection<ExtensionDefinition> extensions)
Add a new extension point, and its extensions, to the manager.
|
(package private) ThreadSafeComponentManager.ComponentFactory |
getComponentFactory(String pluginName,
String featureName,
String role,
Class<? extends Object> componentClass,
Configuration configuration) |
boolean |
hasComponent(String role) |
Component |
lookup(String role)
Return an instance of a component based on a Role.
|
void |
release(Component object) |
_addComponent, addComponent, contextualize, dispose, hasComponent, hasRole, initialize, service
getLogger, setLogger
ComponentManager _parentManager
private Map<String,Collection<ExtensionDefinition>> _extensionPoints
public PluginsComponentManager(ComponentManager parentManager)
parentManager
- the parent managerpublic boolean hasComponent(String role)
hasComponent
in interface ComponentManager
public Component lookup(String role) throws ComponentException
ThreadSafeComponentManager
lookup
in interface ComponentManager
lookup
in class ThreadSafeComponentManager<Object>
role
- The key name of the Component
to retrieve.ComponentException
- if an error occurspublic void release(Component object)
release
in interface ComponentManager
public void addExtensionPoint(String pluginName, String point, Class<? extends ExtensionPoint> extensionPoint, Configuration configuration, Collection<ExtensionDefinition> extensions)
pluginName
- the plugin containing the extension pointpoint
- the extension point name.extensionPoint
- the class of the extension point.configuration
- the configuration for the extension point.extensions
- definitions of extensions.ThreadSafeComponentManager.ComponentFactory getComponentFactory(String pluginName, String featureName, String role, Class<? extends Object> componentClass, Configuration configuration)
getComponentFactory
in class ThreadSafeComponentManager<Object>