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
<T> T
find(ActiveDescriptor<T> descriptor)
           
<T> T
findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
           
 Class<? extends Annotation> getScope()
           
 boolean isActive()
           
 
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>

find

public <T> T find(ActiveDescriptor<T> descriptor)
Specified by:
find in interface Context<TenantScoped>

isActive

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


Copyright © 2012 Oracle Corporation. All Rights Reserved.