| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.metro.data.AbstractDirective
net.dpml.metro.data.CategoryDirective
A logging category descriptor hierachy. The descriptor contains a category name, a optional priority value, and an optional target. If the priority or target values null, the resulting value will be derived from the parent category desciptor. A category descriptor may 0-n subsidiary categories. CategoryDirective names are relative. For example, the category "orb" will appear as "my-app.orb" if the parent category name is "my-app".
XML
    <categories priority="INFO">
      <category priority="DEBUG"  name="loader" />
      <category priority="WARN"  name="types" />
      <category priority="ERROR"  name="types.builder" target="default"/>
      <category name="profiles" />
      <category name="lifecycle" />
      <category name="verifier" />
    </categories>
 
| Constructor Summary | |
CategoryDirective(String name)
Creation of a new CategoryDirective using a supplied name.  | 
|
CategoryDirective(String name,
                                   Priority priority)
Creation of a new CategoryDirective using a supplied name and priority.  | 
|
CategoryDirective(String name,
                                   Priority priority,
                                   String target)
Creation of a new CategoryDirective using a supplied name, priority, target and collection of subsidiary categories.  | 
|
| Method Summary | |
 boolean | 
equals(Object other)
Test this object for equality with the supplied object.  | 
 String | 
getName()
Return the category name.  | 
 Priority | 
getPriority()
Return the logging priority for the category.  | 
 String | 
getTarget()
Return the default log target for the category.  | 
 int | 
hashCode()
Return the instance hash code value.  | 
| Methods inherited from class net.dpml.metro.data.AbstractDirective | 
getPartHandlerURI, setupURI | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public CategoryDirective(String name)
name - the category name
public CategoryDirective(String name,
                         Priority priority)
name - the category namepriority - the category priority - DEBUG, INFO, WARN, or ERROR
public CategoryDirective(String name,
                         Priority priority,
                         String target)
name - the category namepriority - the category priority - DEBUG, INFO, WARN, or ERRORtarget - the name of a logging category target| Method Detail | 
public String getName()
public Priority getPriority()
public String getTarget()
public boolean equals(Object other)
equals in class AbstractDirectiveother - the other object
public int hashCode()
hashCode in class AbstractDirective
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||