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.8 $ $Date: 2004/03/17 10:30:08 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
TargetDirective(String path, Configuration configuration, CategoriesDirective categories, String profile)
          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 getSecurityProfileName()
          Return the name of the assigned security profile.
 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,
                       Configuration configuration,
                       CategoriesDirective categories,
                       String profile)
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

getSecurityProfileName

public String getSecurityProfileName()
Return the name of the assigned security profile.

Returns:
the assigned profile name (possibly null)

getCategoriesDirective

public CategoriesDirective getCategoriesDirective()
Return the logging categories directive.

Returns:
the logging categories directive

toString

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

Returns:
a string representing the target instance


Copyright © The Apache Software Foundation. All Rights Reserved.