public class ScopeManager extends Object implements org.exoplatform.container.component.ComponentRequestLifecycle
The scope manager manages the life cycle of a scope value (which means a mere string) associated with the current thread aimed to scope state. The scope manager takes it values from the current repository service name when it is associated with a request on a container containing the repository service.
The manager implements the ComponentRequestLifecycle
interface to be aware of the request life cycle.
| Constructor and Description |
|---|
ScopeManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
endRequest(org.exoplatform.container.ExoContainer container) |
static String |
getCurrentScope()
Returns the current scope value or null if no value is associated with the current thread.
|
void |
startRequest(org.exoplatform.container.ExoContainer container) |
public static String getCurrentScope()
public void startRequest(org.exoplatform.container.ExoContainer container)
startRequest in interface org.exoplatform.container.component.ComponentRequestLifecyclepublic void endRequest(org.exoplatform.container.ExoContainer container)
endRequest in interface org.exoplatform.container.component.ComponentRequestLifecycleCopyright © 2017 JBoss by Red Hat. All Rights Reserved.