net.dpml.runtime
Class ComponentStrategyHandler
java.lang.Object
net.dpml.runtime.ComponentStrategyHandler
- All Implemented Interfaces:
- StrategyHandler
public class ComponentStrategyHandler
- extends Object
- implements StrategyHandler
Strategy handler for the component model.
- Version:
- 2.0.1
- Author:
- Digital Product Management Laboratory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
ComponentStrategyHandler
public ComponentStrategyHandler()
newStrategy
public Strategy newStrategy(Class<?> c)
throws IOException
- Description copied from interface:
StrategyHandler
- Creation of a new strategy handler for the supplied implementation class.
- Specified by:
newStrategy
in interface StrategyHandler
- Parameters:
c
- the component implementation class
- Throws:
IOException
- if an I/O error occurs
newStrategy
public Strategy newStrategy(Class<?> c,
String name)
throws IOException
- Description copied from interface:
StrategyHandler
- Creation of a new strategy handler for the supplied implementation class.
- Specified by:
newStrategy
in interface StrategyHandler
- Parameters:
c
- the component implementation classname
- the component name
- Throws:
IOException
- if an I/O error occurs
newComponent
public Component newComponent(Class<?> c,
String name)
throws IOException
- Throws:
IOException
build
public Strategy build(ClassLoader classloader,
Element element,
Resolver resolver,
String partition,
String query,
boolean validate)
throws IOException
- Construct a strategy definition using a supplied element and value resolver.
- Specified by:
build
in interface StrategyHandler
- Parameters:
classloader
- the operational classloaderelement
- the DOM element definining the deployment strategyresolver
- symbolic property resolverpartition
- the enclosing partitionquery
- the query fragment to applied to the component context definitionvalidate
- if true validate the strategy integrity
- Returns:
- the strategy definition
- Throws:
IOException
- if an I/O error occurs