org.specrunner.plugins.core.factories
Class PluginFactoryCSS
java.lang.Object
org.specrunner.plugins.core.factories.PluginFactoryImpl
org.specrunner.plugins.core.factories.PluginFactoryCSS
- All Implemented Interfaces:
- IPluginFactory
public class PluginFactoryCSS
- extends PluginFactoryImpl
An implementation which uses the 'class' attribute to return the plugin. To
map a plugin to a given class add a 'plugin_css.properties' file
and add the name of the class.
i.e. ok=test.PluginAny, then just use class="ok"
anywhere in the specification.
- Author:
- Thiago Santos
|
Constructor Summary |
PluginFactoryCSS()
Creates the factory loading file 'sr_plugins_css.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 CSS information.
- See Also:
- Constant Field Values
PluginFactoryCSS
public PluginFactoryCSS()
- Creates the factory loading file 'sr_plugins_css.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.