Search in sources :

Example 1 with CommandContextInterceptor

use of org.activiti.engine.impl.interceptor.CommandContextInterceptor in project Activiti by Activiti.

the class ProcessEngineConfigurationImpl method getDefaultCommandInterceptors.

protected Collection<? extends CommandInterceptor> getDefaultCommandInterceptors() {
    List<CommandInterceptor> interceptors = new ArrayList<CommandInterceptor>();
    interceptors.add(new LogInterceptor());
    CommandInterceptor transactionInterceptor = createTransactionInterceptor();
    if (transactionInterceptor != null) {
        interceptors.add(transactionInterceptor);
    }
    interceptors.add(new CommandContextInterceptor(commandContextFactory, this));
    return interceptors;
}
Also used : ArrayList(java.util.ArrayList) LogInterceptor(org.activiti.engine.impl.interceptor.LogInterceptor) CommandInterceptor(org.activiti.engine.impl.interceptor.CommandInterceptor) CommandContextInterceptor(org.activiti.engine.impl.interceptor.CommandContextInterceptor)

Aggregations

ArrayList (java.util.ArrayList)1 CommandContextInterceptor (org.activiti.engine.impl.interceptor.CommandContextInterceptor)1 CommandInterceptor (org.activiti.engine.impl.interceptor.CommandInterceptor)1 LogInterceptor (org.activiti.engine.impl.interceptor.LogInterceptor)1