org.ow2.jonas.lib.tenant.context
Class TenantCurrent

java.lang.Object
  extended by org.ow2.jonas.lib.tenant.context.TenantCurrent

public class TenantCurrent
extends java.lang.Object

For handling the association TenantContext / Thread

Author:
Mohammed Boukada

Constructor Summary
TenantCurrent()
           
 
Method Summary
static TenantCurrent getCurrent()
          Method getCurrent
 TenantContext getTenantContext()
          Method getTenantContext
 void setGlobalTenantContext(TenantContext ctx)
          Method setTenantContext used for client container
 void setTenantContext(TenantContext ctx)
          Method setTenantContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TenantCurrent

public TenantCurrent()
Method Detail

getCurrent

public static TenantCurrent getCurrent()
Method getCurrent

Returns:
TenantCurrent return the current

setTenantContext

public void setTenantContext(TenantContext ctx)
Method setTenantContext

Parameters:
ctx - Tenant context to associate to the current thread

setGlobalTenantContext

public void setGlobalTenantContext(TenantContext ctx)
Method setTenantContext used for client container

Parameters:
ctx - Tenant context to associate to the JVM

getTenantContext

public TenantContext getTenantContext()
Method getTenantContext

Returns:
TenantContext return the Tenant context associated to the current thread


Copyright © 2012 OW2 Consortium. All Rights Reserved.