org.apache.avalon.composition.data
Class TargetDirective

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

public class TargetDirective
extends Object
implements Serializable

A target is a tagged configuration fragment. The tag is a path seperated by "/" charaters qualifying the component that the target configuration is to be applied to.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 09:31:12 $
Author:
Stephen McConnell
See Also:
Serialized Form

Constructor Summary
TargetDirective(String path)
          Create a new null Target instance.
TargetDirective(String path, Configuration configuration)
          Create a new Target instance.
TargetDirective(String path, Configuration configuration, CategoriesDirective categories)
          Create a new Target instance.
 
Method Summary
 CategoriesDirective getCategoriesDirective()
          Return the logging categories directive.
 Configuration getConfiguration()
          Return the target configuration.
 String getPath()
          Return the target path.
 String toString()
          Return a string representation of the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TargetDirective

public TargetDirective(String path)
Create a new null Target instance.

Parameters:
path - target path

TargetDirective

public TargetDirective(String path,
                       Configuration configuration)
Create a new Target instance.

Parameters:
path - target path
configuration - the configuration

TargetDirective

public TargetDirective(String path,
                       Configuration configuration,
                       CategoriesDirective categories)
Create a new Target instance.

Parameters:
path - target path
configuration - the configuration
categories - the logging category directives
Method Detail

getPath

public String getPath()
Return the target path.

Returns:
the target path

getConfiguration

public Configuration getConfiguration()
Return the target configuration.

Returns:
the target configuration

getCategoriesDirective

public CategoriesDirective getCategoriesDirective()
Return the logging categories directive.

Returns:
the logging categories (possibly null)

toString

public String toString()
Return a string representation of the target.

Returns:
a string representing the target instance


Copyright © Apache Software Foundation. All Rights Reserved.