• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java LogInterceptor类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.activiti.engine.impl.interceptor.LogInterceptor的典型用法代码示例。如果您正苦于以下问题:Java LogInterceptor类的具体用法?Java LogInterceptor怎么用?Java LogInterceptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

LogInterceptor类属于org.activiti.engine.impl.interceptor包,在下文中一共展示了LogInterceptor类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getDefaultCommandInterceptors

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
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;
}
 

开发者ID:flowable,
项目名称:flowable-engine,
代码行数:13,
代码来源:ProcessEngineConfigurationImpl.java

示例2: getDefaultCommandInterceptorsTxRequired

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
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;
}
 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:13,
代码来源:SpringProcessEngineConfiguration.java

示例3: getDefaultCommandInterceptorsTxRequiresNew

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
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;
}
 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:9,
代码来源:SpringProcessEngineConfiguration.java

示例4: getDefaultCommandInterceptorsTxRequired

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
@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;
}
 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:9,
代码来源:JtaProcessEngineConfiguration.java

示例5: getDefaultCommandInterceptorsTxRequiresNew

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
@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;
}
 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:9,
代码来源:JtaProcessEngineConfiguration.java

示例6: getDefaultCommandInterceptorsTxRequired

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
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);
  commandContextInterceptor.setContextReusePossible(true);
  defaultCommandInterceptorsTxRequired.add(commandContextInterceptor);
  return defaultCommandInterceptorsTxRequired;
}
 

开发者ID:joshlong,
项目名称:javaconfig-ftw,
代码行数:14,
代码来源:SpringProcessEngineConfiguration.java

示例7: getDefaultCommandInterceptorsTxRequiresNew

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
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);
  commandContextInterceptor.setContextReusePossible(false);
  defaultCommandInterceptorsTxRequiresNew.add(commandContextInterceptor);
  return defaultCommandInterceptorsTxRequiresNew;
}
 

开发者ID:joshlong,
项目名称:javaconfig-ftw,
代码行数:10,
代码来源:SpringProcessEngineConfiguration.java

示例8: getDefaultCommandInterceptors

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
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;
}
 

开发者ID:springvelocity,
项目名称:xbpm5,
代码行数:13,
代码来源:ProcessEngineConfigurationImpl.java

示例9: getDefaultCommandInterceptorsTxRequired

点赞 2

import org.activiti.engine.impl.interceptor.LogInterceptor; //导入依赖的package包/类
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() {
  List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>();
  defaultCommandInterceptorsTxRequired.add(new LogInterceptor());
  defaultCommandInterceptorsTxRequired.add(new CommandContextInterceptor(commandContextFactory, this));
  return defaultCommandInterceptorsTxRequired;
}
 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:7,
代码来源:StandaloneProcessEngineConfiguration.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)