public abstract class PluginManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List |
_keys |
private WireFeedGenerator |
_parentGenerator |
private WireFeedParser |
_parentParser |
private java.util.List |
_pluginsList |
private java.util.Map |
_pluginsMap |
private java.lang.String[] |
_propertyValues |
Modifier | Constructor and Description |
---|---|
protected |
PluginManager(java.lang.String propertyKey)
Creates a PluginManager
|
protected |
PluginManager(java.lang.String propertyKey,
WireFeedParser parentParser,
WireFeedGenerator parentGenerator) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Class[] |
getClasses()
Loads and returns the classes defined in the properties files.
|
protected abstract java.lang.String |
getKey(java.lang.Object obj) |
protected java.util.List |
getKeys() |
protected java.lang.Object |
getPlugin(java.lang.String key) |
protected java.util.Map |
getPluginMap() |
protected java.util.List |
getPlugins() |
private void |
loadPlugins() |
private java.lang.String[] _propertyValues
private java.util.Map _pluginsMap
private java.util.List _pluginsList
private java.util.List _keys
private WireFeedParser _parentParser
private WireFeedGenerator _parentGenerator
protected PluginManager(java.lang.String propertyKey)
propertyKey
- property key defining the plugins classesprotected PluginManager(java.lang.String propertyKey, WireFeedParser parentParser, WireFeedGenerator parentGenerator)
protected abstract java.lang.String getKey(java.lang.Object obj)
protected java.util.List getKeys()
protected java.util.List getPlugins()
protected java.util.Map getPluginMap()
protected java.lang.Object getPlugin(java.lang.String key)
private void loadPlugins()
private java.lang.Class[] getClasses() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- thrown if one of the classes defined in the properties file cannot be loaded
and hard failure is ON.Copyright © Sun Microsystems. All Rights Reserved.