org.apache.avalon.composition.data
Class BlockCompositionDirective

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

public class BlockCompositionDirective
extends DeploymentProfile

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

Version:
$Revision: 1.7 $ $Date: 2004/05/01 17:03:42 $
Author:
Avalon Development Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.avalon.composition.data.DeploymentProfile
DEFAULT, DISABLED, ENABLED
 
Constructor Summary
BlockCompositionDirective(String name, Artifact artifact)
          Creation of a new resource directive.
BlockCompositionDirective(String name, Artifact artifact, TargetDirective[] targets)
          Creation of a new resource directive.
 
Method Summary
 Artifact getArtifact()
          Return the artifact reference.
 TargetDirective[] getTargetDirectives()
          Return the relative targets.
 
Methods inherited from class org.apache.avalon.composition.data.DeploymentProfile
getActivationDirective, getCategories, 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,
                                 Artifact artifact)
Creation of a new resource directive.

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

BlockCompositionDirective

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

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

getArtifact

public Artifact getArtifact()
Return the artifact reference.

Returns:
the artifact

getTargetDirectives

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

Returns:
the targets


Copyright © The Apache Software Foundation. All Rights Reserved.