net.dpml.lang
Interface StrategyHandler

All Known Implementing Classes:
AntlibStrategyHandler, ComponentStrategyHandler

public interface StrategyHandler

Interace implemented by part strategy handlers.

Version:
2.1.0
Author:
Digital Product Management Library

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

Method Detail

newStrategy

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

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

newStrategy

Strategy newStrategy(Class<?> c,
                     String name)
                     throws 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:
IOException - if an I/O error occurs

build

Strategy build(ClassLoader classloader,
               Element element,
               Resolver resolver,
               String partition,
               String query,
               boolean validate)
               throws 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:
IOException - if an I/O error occurs