public class ChromatticManager extends Object implements org.exoplatform.container.component.ComponentRequestLifecycle
| Constructor and Description |
|---|
ChromatticManager(org.exoplatform.services.jcr.RepositoryService repositoryService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifeCycle(org.exoplatform.container.component.ComponentPlugin plugin) |
void |
beginRequest()
Begins the demarcation of a request and associates the current thread of execution with a context that will provides
access to the correct persistence context.
|
void |
endRequest(boolean save)
Ends the demarcation of a request.
|
void |
endRequest(org.exoplatform.container.ExoContainer container) |
ChromatticLifeCycle |
getLifeCycle(String lifeCycleName) |
Synchronization |
getSynchronization() |
void |
startRequest(org.exoplatform.container.ExoContainer container) |
public ChromatticLifeCycle getLifeCycle(String lifeCycleName)
public void addLifeCycle(org.exoplatform.container.component.ComponentPlugin plugin)
public Synchronization getSynchronization()
public void beginRequest()
throws IllegalStateException
IllegalStateException - if a request is already associated with this threadpublic void endRequest(boolean save)
throws IllegalStateException
save - to save the stateIllegalStateException - if no request was started previouslypublic 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.