public class CommandContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attributes |
protected List<CommandContextCloseListener> |
closeListeners |
protected Command<?> |
command |
protected DmnEngineConfiguration |
dmnEngineConfiguration |
protected Throwable |
exception |
protected Map<Class<?>,SessionFactory> |
sessionFactories |
protected Map<Class<?>,Session> |
sessions |
protected TransactionContext |
transactionContext |
| Constructor and Description |
|---|
CommandContext(Command<?> command,
DmnEngineConfiguration dmnEngineConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
Object value) |
void |
addCloseListener(CommandContextCloseListener commandContextCloseListener) |
void |
close() |
protected void |
closeSessions() |
void |
exception(Throwable exception) |
protected void |
flushSessions() |
Object |
getAttribute(String key) |
List<CommandContextCloseListener> |
getCloseListeners() |
Command<?> |
getCommand() |
DbSqlSession |
getDbSqlSession() |
DecisionTableEntityManager |
getDecisionTableEntityManager() |
DmnDeploymentEntityManager |
getDeploymentEntityManager() |
DmnEngineConfiguration |
getDmnEngineConfiguration() |
Throwable |
getException() |
ResourceEntityManager |
getResourceEntityManager() |
<T> T |
getSession(Class<T> sessionClass) |
Map<Class<?>,SessionFactory> |
getSessionFactories() |
Map<Class<?>,Session> |
getSessions() |
TransactionContext |
getTransactionContext() |
protected Command<?> command
protected TransactionContext transactionContext
protected Map<Class<?>,SessionFactory> sessionFactories
protected Throwable exception
protected DmnEngineConfiguration dmnEngineConfiguration
protected List<CommandContextCloseListener> closeListeners
public CommandContext(Command<?> command, DmnEngineConfiguration dmnEngineConfiguration)
public void close()
public void addCloseListener(CommandContextCloseListener commandContextCloseListener)
public List<CommandContextCloseListener> getCloseListeners()
protected void flushSessions()
protected void closeSessions()
public void exception(Throwable exception)
public <T> T getSession(Class<T> sessionClass)
public Map<Class<?>,SessionFactory> getSessionFactories()
public DbSqlSession getDbSqlSession()
public DmnDeploymentEntityManager getDeploymentEntityManager()
public DecisionTableEntityManager getDecisionTableEntityManager()
public ResourceEntityManager getResourceEntityManager()
public DmnEngineConfiguration getDmnEngineConfiguration()
public TransactionContext getTransactionContext()
public Command<?> getCommand()
public Throwable getException()
Copyright © 2017 Alfresco. All rights reserved.