public Collection<? extends CommandInterceptor> getDefaultCommandInterceptors() { List<CommandInterceptor> interceptors = new ArrayList<CommandInterceptor>(); interceptors.add(new LogInterceptor()); CommandInterceptor transactionInterceptor = createTransactionInterceptor(); if (transactionInterceptor != null) { interceptors.add(transactionInterceptor); } if (commandContextFactory != null) { interceptors.add(new CommandContextInterceptor(commandContextFactory, this)); } if (transactionContextFactory != null) { interceptors.add(new TransactionContextInterceptor(transactionContextFactory)); } return interceptors; }
protected Collection< ? extends CommandInterceptor> createDefaultCommandInterceptors(boolean contextReusePossible) { List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequired.add(new LogInterceptor()); CommandContextInterceptor commandContextInterceptor = new CommandContextInterceptor(commandContextFactory, this); commandContextInterceptor.setContextReusePossible(contextReusePossible); defaultCommandInterceptorsTxRequired.add(commandContextInterceptor); return defaultCommandInterceptorsTxRequired; }
public ProcessEngineConfigurationImpl findProcessEngineConfigurationImpl() { if(processEngineConfiguration != null) return processEngineConfiguration; CommandInterceptor temp = (CommandInterceptor)commandExecutor; do { if(temp instanceof CommandContextInterceptor) { this.processEngineConfiguration = ((CommandContextInterceptor)temp).getProcessEngineConfiguration(); break; } temp = (CommandInterceptor)temp.getNext(); }while(temp !=null); return processEngineConfiguration; } }
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() { if (transactionManager==null) { throw new ActivitiException("transactionManager is required property for SpringProcessEngineConfiguration, use "+StandaloneProcessEngineConfiguration.class.getName()+" otherwise"); } List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequired.add(new LogInterceptor()); defaultCommandInterceptorsTxRequired.add(new SpringTransactionInterceptor(transactionManager, TransactionTemplate.PROPAGATION_REQUIRED)); CommandContextInterceptor commandContextInterceptor = new CommandContextInterceptor(commandContextFactory, this); // there is only this change against SpringProcessEngineConfiguration commandContextInterceptor.setContextReusePossible(false); defaultCommandInterceptorsTxRequired.add(commandContextInterceptor); return defaultCommandInterceptorsTxRequired; } }
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() { List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequired.add(new LogInterceptor()); defaultCommandInterceptorsTxRequired.add(new CommandContextInterceptor(commandContextFactory, this)); return defaultCommandInterceptorsTxRequired; }
@Override protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() { List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequired.add(new LogInterceptor()); defaultCommandInterceptorsTxRequired.add(new JtaTransactionInterceptor(transactionManager, false)); defaultCommandInterceptorsTxRequired.add(new CommandContextInterceptor(commandContextFactory, this)); return defaultCommandInterceptorsTxRequired; }
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequiresNew() { List<CommandInterceptor> defaultCommandInterceptorsTxRequiresNew = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequiresNew.add(new LogInterceptor()); defaultCommandInterceptorsTxRequiresNew.add(new SpringTransactionInterceptor(transactionManager, TransactionTemplate.PROPAGATION_REQUIRES_NEW)); CommandContextInterceptor commandContextInterceptor = new CommandContextInterceptor(commandContextFactory, this); defaultCommandInterceptorsTxRequiresNew.add(commandContextInterceptor); return defaultCommandInterceptorsTxRequiresNew; }
@Override protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() { List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequired.add(new LogInterceptor()); defaultCommandInterceptorsTxRequired.add(new JtaTransactionInterceptor(transactionManager, false)); defaultCommandInterceptorsTxRequired.add(new CommandContextInterceptor(commandContextFactory, this)); return defaultCommandInterceptorsTxRequired; }
@Override protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequiresNew() { List<CommandInterceptor> defaultCommandInterceptorsTxRequiresNew = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequiresNew.add(new LogInterceptor()); defaultCommandInterceptorsTxRequiresNew.add(new JtaTransactionInterceptor(transactionManager, true)); defaultCommandInterceptorsTxRequiresNew.add(new CommandContextInterceptor(commandContextFactory, this)); return defaultCommandInterceptorsTxRequiresNew; }
protected Collection<? extends CommandInterceptor> getDefaultCommandInterceptors() { List<CommandInterceptor> interceptors = new ArrayList<>(); interceptors.add(new LogInterceptor()); CommandInterceptor transactionInterceptor = createTransactionInterceptor(); if (transactionInterceptor != null) { interceptors.add(transactionInterceptor); } interceptors.add(new CommandContextInterceptor(commandContextFactory, this)); return interceptors; }
@Override protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequiresNew() { List<CommandInterceptor> defaultCommandInterceptorsTxRequiresNew = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequiresNew.add(new LogInterceptor()); defaultCommandInterceptorsTxRequiresNew.add(new JtaTransactionInterceptor(transactionManager, true)); defaultCommandInterceptorsTxRequiresNew.add(new CommandContextInterceptor(commandContextFactory, this)); return defaultCommandInterceptorsTxRequiresNew; }
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() { if (transactionManager==null) { throw new ActivitiException("transactionManager is required property for SpringProcessEngineConfiguration, use "+StandaloneProcessEngineConfiguration.class.getName()+" otherwise"); } List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>(); defaultCommandInterceptorsTxRequired.add(new LogInterceptor()); defaultCommandInterceptorsTxRequired.add(new SpringTransactionInterceptor(transactionManager, TransactionTemplate.PROPAGATION_REQUIRED)); CommandContextInterceptor commandContextInterceptor = new CommandContextInterceptor(commandContextFactory, this); defaultCommandInterceptorsTxRequired.add(commandContextInterceptor); return defaultCommandInterceptorsTxRequired; }
public Collection<? extends CommandInterceptor> getDefaultCommandInterceptors() { List<CommandInterceptor> interceptors = new ArrayList<CommandInterceptor>(); interceptors.add(new LogInterceptor()); CommandInterceptor transactionInterceptor = createTransactionInterceptor(); if (transactionInterceptor != null) { interceptors.add(transactionInterceptor); } if (commandContextFactory != null) { interceptors.add(new CommandContextInterceptor(commandContextFactory, this)); } if (transactionContextFactory != null) { interceptors.add(new TransactionContextInterceptor(transactionContextFactory)); } return interceptors; }