|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface TenantManager
TenantManager provides access to information about all tenants. It is designed for multi-tenant environment, so keeps track of the currently active tenant, and guarantees access to currently active tenant information. It also provides restricted write access to tenant information as whole. Its implementation uses reentrant lock. CAUTION: Interface is currently evolving and may be changed.
| Method Summary | ||
|---|---|---|
Object |
excuteUpdate(org.jvnet.hk2.config.ConfigCode code,
org.jvnet.hk2.config.ConfigBeanProxy... objects)
Executes code on objects protected by a transaction. |
|
|
executeUpdate(org.jvnet.hk2.config.SingleConfigCode<T> code,
T object)
Executes code on object protected by a transaction. |
|
|
get(Class<T> config)
Get current tenant specific information. |
|
String |
getCurrentTenant()
Get current tenant. |
|
void |
setCurrentTenant(String name)
Get current tenant. |
|
| Method Detail |
|---|
<T> T get(Class<T> config)
config - Config class.
<T extends org.jvnet.hk2.config.ConfigBeanProxy> Object executeUpdate(org.jvnet.hk2.config.SingleConfigCode<T> code,
T object)
throws org.jvnet.hk2.config.TransactionFailure
ConfigBeanSupport.apply and ensures restricted access to
tenant information as whole.
code - object -
org.jvnet.hk2.config.TransactionFailure
Object excuteUpdate(org.jvnet.hk2.config.ConfigCode code,
org.jvnet.hk2.config.ConfigBeanProxy... objects)
throws org.jvnet.hk2.config.TransactionFailure
ConfigBeanSupport.apply and ensures restricted access to
tenant information as whole.
code - objects - configurations
org.jvnet.hk2.config.TransactionFailureString getCurrentTenant()
void setCurrentTenant(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||