org.glassfish.examples.ctm
Class TenantScopedContext

java.lang.Object
  extended by org.glassfish.examples.ctm.TenantScopedContext
All Implemented Interfaces:
Context<TenantScoped>

@Service
@Singleton
public class TenantScopedContext
extends Object
implements Context<TenantScoped>

Author:
jwells

Constructor Summary
TenantScopedContext()
           
 
Method Summary
 boolean containsKey(ActiveDescriptor<?> descriptor)
           
<T> T
findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
           
 Class<? extends Annotation> getScope()
           
 boolean isActive()
           
 void shutdown()
           
 boolean supportsNullCreation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TenantScopedContext

public TenantScopedContext()
Method Detail

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface Context<TenantScoped>

findOrCreate

public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor,
                          ServiceHandle<?> root)
Specified by:
findOrCreate in interface Context<TenantScoped>

containsKey

public boolean containsKey(ActiveDescriptor<?> descriptor)
Specified by:
containsKey in interface Context<TenantScoped>

isActive

public boolean isActive()
Specified by:
isActive in interface Context<TenantScoped>

shutdown

public void shutdown()
Specified by:
shutdown in interface Context<TenantScoped>

supportsNullCreation

public boolean supportsNullCreation()
Specified by:
supportsNullCreation in interface Context<TenantScoped>


Copyright © 2012 Oracle Corporation. All Rights Reserved.