public class PluginFactoryAttribute extends PluginFactoryImpl
plugin_attribute.properties'
file and add the name of the class.
i.e. bean=test.PluginAny, then just use attribute
bean="anything" anywhere in the specification.
aliasToTypeNames, aliasToTypes, file, initialized, kind, templates, typeNamesToAlias| Constructor and Description |
|---|
PluginFactoryAttribute()
Creates the factory loading file 'sr_plugins_attribute.properties'.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
byAttribute(IContext context,
IPluginGroup result,
nu.xom.Element ele)
Lookup plugin classes using attribute enumeration as reference.
|
protected void |
byMapping(IContext context,
IPluginGroup result,
nu.xom.Element ele)
Lookup plugin classes using mapped attributes as reference.
|
IPlugin |
newPlugin(nu.xom.Node node,
IContext context)
Creates a new plugin.
|
bind, finalizePlugin, getAlias, getClass, getKind, initialize, testpublic PluginFactoryAttribute()
public IPlugin newPlugin(nu.xom.Node node, IContext context) throws PluginException
IPluginFactorynode - The source node for plugin creation.context - The context.PluginException - On creation error.protected void byMapping(IContext context, IPluginGroup result, nu.xom.Element ele) throws PluginException
context - The context.result - The result set.ele - The corresponding element.PluginException - On plugin errors.protected void byAttribute(IContext context, IPluginGroup result, nu.xom.Element ele) throws PluginException
context - The context.result - The result set.ele - The corresponding element.PluginException - On plugin errors.Copyright © 2016. All rights reserved.