org.apache.avalon.composition.data
Class BlockCompositionDirective

java.lang.Object
  extended byorg.apache.avalon.composition.data.Profile
      extended byorg.apache.avalon.composition.data.BlockCompositionDirective
All Implemented Interfaces:
Serializable

public class BlockCompositionDirective
extends Profile

A block reference directive contains an identifier and verion of a local resource to be included by reference into a container.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:26:44 $
Author:
Stephen McConnell
See Also:
Serialized Form

Constructor Summary
BlockCompositionDirective(String name, ResourceDirective resource)
          Creation of a new resource directive.
BlockCompositionDirective(String name, ResourceDirective resource, TargetDirective[] targets)
          Creation of a new resource directive.
 
Method Summary
 ResourceDirective getResource()
          Return the resource reference.
 TargetDirective[] getTargetDirectives()
          Return the relative targets.
 
Methods inherited from class org.apache.avalon.composition.data.Profile
getActivationPolicy, getMode, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockCompositionDirective

public BlockCompositionDirective(String name,
                                 ResourceDirective resource)
Creation of a new resource directive.

Parameters:
name - the name to assign to the container established by the composition directive
resource - a resource reference from which a block description can be resolved

BlockCompositionDirective

public BlockCompositionDirective(String name,
                                 ResourceDirective resource,
                                 TargetDirective[] targets)
Creation of a new resource directive.

Parameters:
name - the name to assign to the container established by the composition directive
resource - a resource reference from which a block description can be resolved
Method Detail

getResource

public ResourceDirective getResource()
Return the resource reference.

Returns:
the resource

getTargetDirectives

public TargetDirective[] getTargetDirectives()
Return the relative targets.

Returns:
the targets


Copyright © Apache Software Foundation. All Rights Reserved.