org.oddjob.framework
Class ComponentBoundry

java.lang.Object
  extended by 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

Constructor Summary
ComponentBoundry()
           
 
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
 

Constructor Detail

ComponentBoundry

public ComponentBoundry()
Method Detail

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.