org.jboss.soa.esb.lifecycle
Class LifecycleIdentity

java.lang.Object
  extended by org.jboss.soa.esb.lifecycle.LifecycleIdentity

public class LifecycleIdentity
extends java.lang.Object

Utility to handle lifecycle identities.

Author:
kevin

Constructor Summary
LifecycleIdentity()
           
 
Method Summary
 java.lang.String getNextLifecycleIdentity()
           
static LifecycleIdentity getSingleton()
          Get the lifecycle identify singleton.
 java.lang.String getThreadLifecycleIdentity()
          Get the lifecycle identity associated with the current thread.
 void setThreadLifecycleIdentity(java.lang.String lifecycleIdentity)
          Set the lifecycle identity associated with the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleIdentity

public LifecycleIdentity()
Method Detail

getNextLifecycleIdentity

public java.lang.String getNextLifecycleIdentity()

setThreadLifecycleIdentity

public void setThreadLifecycleIdentity(java.lang.String lifecycleIdentity)
Set the lifecycle identity associated with the current thread.

Parameters:
lifecycleIdentity - The lifecycle identity or null to clear.

getThreadLifecycleIdentity

public java.lang.String getThreadLifecycleIdentity()
Get the lifecycle identity associated with the current thread.

Returns:
The lifecycle identity or null if not set.

getSingleton

public static LifecycleIdentity getSingleton()
Get the lifecycle identify singleton.

Returns:
the lifecycle identity singleton.