org.specrunner.plugins.core.factories
Class PluginFactoryElement
java.lang.Object
org.specrunner.plugins.core.factories.PluginFactoryImpl
org.specrunner.plugins.core.factories.PluginFactoryElement
- All Implemented Interfaces:
- IPluginFactory
public class PluginFactoryElement
- extends PluginFactoryImpl
Creates a plugin by element. To bind an element add a '
plugin_element.properties' file and map the tag.
i.e. a map of br=test.PluginNewLine will perfome the plugin each
tag <br>.
- Author:
- Thiago Santos
|
Constructor Summary |
PluginFactoryElement()
Creates a factory loading file 'sr_plugins_element.properties'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginFactoryElement
public PluginFactoryElement()
- Creates a factory loading file 'sr_plugins_element.properties'.
newPlugin
public IPlugin newPlugin(nu.xom.Node node,
IContext context)
throws PluginException
- Description copied from interface:
IPluginFactory
- Creates a new plugin.
- Parameters:
node - The source node for plugin creation.context - The context.
- Returns:
- A plugin based on source information.
- Throws:
PluginException - On creation error.
Copyright © 2014. All rights reserved.