Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.policy
Interface PolicyBuilderRegistry


public interface PolicyBuilderRegistry

A registry for policy builders that dispatches to the appropriate builder when converting an assembly to runtime artifacts. Policy builders operate on either a source- or target-side wires.

Version:
$Rev: 430937 $ $Date: 2006-08-11 18:17:56 -0700 (Fri, 11 Aug 2006) $

Field Summary
static int EXTENSION
           
static int FINAL
           
static int INITIAL
           
 
Method Summary
 void buildSource(ReferenceDefinition referenceDefinition, OutboundWire wire)
          Evaluates source-side policy metadata for referenceDefinition and updates the curresponding collection of wire configurations
 void buildTarget(ServiceDefinition serviceDefinition, InboundWire wire)
          Evaluates target-side policy metadata for configured reference and updates the curresponding collection of wire configurations
 void registerSourceBuilder(int phase, SourcePolicyBuilder builder)
          Registers a source-side policy builder.
 void registerTargetBuilder(int phase, TargetPolicyBuilder builder)
          Registers a target-side policy builder.
 

Field Detail

INITIAL

static final int INITIAL
See Also:
Constant Field Values

EXTENSION

static final int EXTENSION
See Also:
Constant Field Values

FINAL

static final int FINAL
See Also:
Constant Field Values
Method Detail

registerTargetBuilder

void registerTargetBuilder(int phase,
                           TargetPolicyBuilder builder)
Registers a target-side policy builder. Called by extensions to register their builders.

Parameters:
phase - the phase hwne the builder must be run
builder - the builder to register

registerSourceBuilder

void registerSourceBuilder(int phase,
                           SourcePolicyBuilder builder)
Registers a source-side policy builder. Called by extensions to register their builders.

Parameters:
phase - the phase hwne the builder must be run
builder - the builder to register

buildSource

void buildSource(ReferenceDefinition referenceDefinition,
                 OutboundWire wire)
                 throws BuilderException
Evaluates source-side policy metadata for referenceDefinition and updates the curresponding collection of wire configurations

Throws:
BuilderException

buildTarget

void buildTarget(ServiceDefinition serviceDefinition,
                 InboundWire wire)
                 throws BuilderException
Evaluates target-side policy metadata for configured reference and updates the curresponding collection of wire configurations

Throws:
BuilderException

Apache Tuscany SCA Kernel Sub-Project

-