org.glassfish.examples.ctm
Class TenantScopedContext
java.lang.Object
org.glassfish.examples.ctm.TenantScopedContext
- All Implemented Interfaces:
- Context<TenantScoped>
@Service
@Singleton
public class TenantScopedContext
- extends Object
- implements Context<TenantScoped>
- Author:
- jwells
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TenantScopedContext
public TenantScopedContext()
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>
destroyOne
public void destroyOne(ActiveDescriptor<?> descriptor)
- Specified by:
destroyOne in interface Context<TenantScoped>
Copyright © 2012 Oracle Corporation. All Rights Reserved.