org.oddjob.framework
Class ComponentBoundry
java.lang.Object
org.oddjob.framework.ComponentBoundry
public class ComponentBoundry
- extends Object
Handles the crossover between components. This should probably be done with
AOP but for now well do it long hand.
The typical usage is:
public void someMethod() {
ComponentBoundry.push(loggerName, this);
try {
...
}
finally {
ComponentBoundry.pop();
}
}
- Author:
- rob
Method Summary |
static void |
pop()
Called on leaving a component method. |
static void |
push(String loggerName,
Object component)
Called on entering a component method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentBoundry
public ComponentBoundry()
push
public static void push(String loggerName,
Object component)
- Called on entering a component method.
- Parameters:
loggerName
- The new diagnostic context information.component
- The component.
pop
public static void pop()
- Called on leaving a component method.