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 associateLifecycleIdentity()
           
 java.lang.String getLifecycleIdentity()
          Get the lifecycle identity associated with the current context classloader.
static LifecycleIdentity getSingleton()
          Get the lifecycle identify singleton.
 void setLifecycleIdentity(java.lang.String lifecycleIdentity)
          Set the lifecycle identity associated with the current context classloader.
 
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

associateLifecycleIdentity

public java.lang.String associateLifecycleIdentity()

setLifecycleIdentity

public void setLifecycleIdentity(java.lang.String lifecycleIdentity)
Set the lifecycle identity associated with the current context classloader.

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

getLifecycleIdentity

public java.lang.String getLifecycleIdentity()
Get the lifecycle identity associated with the current context classloader.

Returns:
The lifecycle identity or null if not set.

getSingleton

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

Returns:
the lifecycle identity singleton.