org.specrunner.plugins.core.factories
Class PluginFactoryCustom
java.lang.Object
org.specrunner.plugins.core.factories.PluginFactoryImpl
org.specrunner.plugins.core.factories.PluginFactoryCustom
- All Implemented Interfaces:
- IPluginFactory
public class PluginFactoryCustom
- extends PluginFactoryImpl
Returns a plugin based on a 'custom' attribute.
i.e. custom="test.PluginSysout",
or based on a file ' plugin_custom.properties , i.e. add
new=test.PluginCustomized, and use custom="new"
anywhere in the specification.
- Author:
- Thiago Santos
|
Field Summary |
static String |
ATTRIBUTE
Attribute with custom plugin information. |
|
Constructor Summary |
PluginFactoryCustom()
Creates the factory loading file 'sr_plugins_custom.properties'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE
public static final String ATTRIBUTE
- Attribute with custom plugin information.
- See Also:
- Constant Field Values
PluginFactoryCustom
public PluginFactoryCustom()
- Creates the factory loading file 'sr_plugins_custom.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.