net.dpml.lang
Interface StrategyHandler

All Known Implementing Classes:
AntlibStrategyHandler, ComponentStrategyHandler

public interface StrategyHandler

Interace implemented by part strategy handlers.

Version:
2.0.3
Author:
Digital Product Management Laboratory

Method Summary
 Strategy build(java.lang.ClassLoader classloader, org.w3c.dom.Element element, Resolver resolver, java.lang.String partition, java.lang.String query, boolean validate)
          Construct a new strategy using a supplied element and value resolver.
 Strategy newStrategy(java.lang.Class<?> c)
          Creation of a new strategy handler for the supplied implementation class.
 Strategy newStrategy(java.lang.Class<?> c, java.lang.String name)
          Creation of a new strategy handler for the supplied implementation class.
 

Method Detail

newStrategy

Strategy newStrategy(java.lang.Class<?> c)
                     throws java.io.IOException
Creation of a new strategy handler for the supplied implementation class.

Parameters:
c - the component implementation class
Returns:
a new strategy
Throws:
java.io.IOException - if an I/O error occurs

newStrategy

Strategy newStrategy(java.lang.Class<?> c,
                     java.lang.String name)
                     throws java.io.IOException
Creation of a new strategy handler for the supplied implementation class.

Parameters:
c - the component implementation class
name - the component name
Returns:
a new strategy
Throws:
java.io.IOException - if an I/O error occurs

build

Strategy build(java.lang.ClassLoader classloader,
               org.w3c.dom.Element element,
               Resolver resolver,
               java.lang.String partition,
               java.lang.String query,
               boolean validate)
               throws java.io.IOException
Construct a new strategy using a supplied element and value resolver.

Parameters:
classloader - the classloader
element - the DOM element definining the deployment strategy
resolver - symbolic property resolver
partition - the assigned partition
query - the query
validate - if true validate the strategy integrity
Returns:
the strategy
Throws:
java.io.IOException - if an I/O error occurs