org.milyn.container.ExecutionContext.getContext()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(8.4k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.milyn.container.ExecutionContext.getContext()方法的一些代码示例,展示了ExecutionContext.getContext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExecutionContext.getContext()方法的具体详情如下:
包路径:org.milyn.container.ExecutionContext
类名称:ExecutionContext
方法名:getContext

ExecutionContext.getContext介绍

[英]Get the application context within which this execution context "lives".
[中]获取此执行上下文“所在”的应用程序上下文。

代码示例

代码示例来源:origin: smooks/smooks

public static StandaloneBeanContext create(ExecutionContext executionContext) {
  StandaloneBeanContext beanContext;
  BeanIdStore beanIdStore = executionContext.getContext().getBeanIdStore();
  Map<String, Object> beanMap = createBeanMap(executionContext, beanIdStore);
  beanContext = new StandaloneBeanContext(executionContext, beanIdStore, beanMap);
  return beanContext;
}

代码示例来源:origin: org.virtuslab/milyn-smooks-core

public static StandaloneBeanContext create(ExecutionContext executionContext) {
  StandaloneBeanContext beanContext;
  BeanIdStore beanIdStore = executionContext.getContext().getBeanIdStore();
  Map<String, Object> beanMap = createBeanMap(executionContext, beanIdStore);
  beanContext = new StandaloneBeanContext(executionContext, beanIdStore, beanMap);
  return beanContext;
}

代码示例来源:origin: org.milyn/milyn-smooks-core

public static StandaloneBeanContext create(ExecutionContext executionContext) {
  StandaloneBeanContext beanContext;
  BeanIdStore beanIdStore = executionContext.getContext().getBeanIdStore();
  Map<String, Object> beanMap = createBeanMap(executionContext, beanIdStore);
  beanContext = new StandaloneBeanContext(executionContext, beanIdStore, beanMap);
  return beanContext;
}

代码示例来源:origin: org.milyn/milyn-smooks-all

public static StandaloneBeanContext create(ExecutionContext executionContext) {
  StandaloneBeanContext beanContext;
  BeanIdStore beanIdStore = executionContext.getContext().getBeanIdStore();
  Map<String, Object> beanMap = createBeanMap(executionContext, beanIdStore);
  beanContext = new StandaloneBeanContext(executionContext, beanIdStore, beanMap);
  return beanContext;
}

代码示例来源:origin: org.milyn/milyn-smooks-all

public static void initializeParameterContainer(int id, ParameterListType type, ExecutionContext executionContext) {
  ParameterContainer<?> container = getParameterContainer(id, executionContext);
  if(container == null) {
    switch (type) {
    case NAMED:
      container = new NamedParameterContainer((NamedParameterIndex) getParameterIndex(id, executionContext.getContext()));
      break;
    case POSITIONAL:
      container = new PositionalParameterContainer((PositionalParameterIndex) getParameterIndex(id, executionContext.getContext()));
      break;
    default:
      throw new IllegalStateException("Unknown ParameterListType '" + type + "'.");
    }
    executionContext.setAttribute(getParameterContainerName(id), container);
  } else {
    container.clear();
  }
}

代码示例来源:origin: org.milyn/milyn-smooks-core

Configurator.configure(reader, saxDriverConfig, execContext.getContext());
} else {
  Configurator.initialise(reader);

代码示例来源:origin: org.milyn/milyn-smooks-all

Configurator.configure(reader, saxDriverConfig, execContext.getContext());
} else {
  Configurator.initialise(reader);

代码示例来源:origin: org.virtuslab/milyn-smooks-core

Configurator.configure(reader, saxDriverConfig, execContext.getContext());
} else {
  Configurator.initialise(reader);

代码示例来源:origin: smooks/smooks

Configurator.configure(reader, saxDriverConfig, execContext.getContext());
} else {
  Configurator.initialise(reader);

代码示例来源:origin: smooks/smooks

/**
 * Changes a bean object of the given beanId. The difference to addBean is that the
 * bean must exist, the associated beans aren't removed and the observers of the
 * {@link BeanLifecycle#CHANGE} event are notified.
 *
 * @param executionContext The execution context within which the bean is created.
 * @param beanId The beanId under which the bean is to be stored.
 * @param bean The bean instance to be stored.
 */
public static void changeBean(ExecutionContext executionContext, String beanId, Object bean) {
  warnUsingDeprecatedMethod();
  AssertArgument.isNotNull(executionContext, "executionContext");
  AssertArgument.isNotNullAndNotEmpty(beanId, "beanId");
  AssertArgument.isNotNull(bean, "bean");
  BeanId beanIdObj = getBeanId(executionContext.getContext().getBeanIdStore(), beanId);
  executionContext.getBeanContext().changeBean(beanIdObj, bean, null);
}

代码示例来源:origin: smooks/smooks

/**
 * Add a bean instance to the specified request under the specified beanId.
 *
 * @param executionContext The execution context within which the bean is created.
 * @param beanId The beanId under which the bean is to be stored.
 * @param bean The bean instance to be stored.
 */
public static void addBean(ExecutionContext executionContext, String beanId, Object bean) {
  warnUsingDeprecatedMethod();
  AssertArgument.isNotNull(executionContext, "executionContext");
  AssertArgument.isNotNullAndNotEmpty(beanId, "beanId");
  AssertArgument.isNotNull(bean, "bean");
  BeanId beanIdObj = getBeanId(executionContext.getContext().getBeanIdStore(), beanId);
  executionContext.getBeanContext().addBean(beanIdObj, bean, null);
}

代码示例来源:origin: org.milyn/milyn-smooks-javabean

/**
 * Add a bean instance to the specified request under the specified beanId.
 *
 * @param executionContext The execution context within which the bean is created.
 * @param beanId The beanId under which the bean is to be stored.
 * @param bean The bean instance to be stored.
 */
public static void addBean(ExecutionContext executionContext, String beanId, Object bean) {
  warnUsingDeprecatedMethod();
  AssertArgument.isNotNull(executionContext, "executionContext");
  AssertArgument.isNotNullAndNotEmpty(beanId, "beanId");
  AssertArgument.isNotNull(bean, "bean");
  BeanId beanIdObj = getBeanId(executionContext.getContext().getBeanIdStore(), beanId);
  executionContext.getBeanContext().addBean(beanIdObj, bean, null);
}

代码示例来源:origin: org.milyn/milyn-smooks-all

/**
 * Add a bean instance to the specified request under the specified beanId.
 *
 * @param executionContext The execution context within which the bean is created.
 * @param beanId The beanId under which the bean is to be stored.
 * @param bean The bean instance to be stored.
 */
public static void addBean(ExecutionContext executionContext, String beanId, Object bean) {
  warnUsingDeprecatedMethod();
  AssertArgument.isNotNull(executionContext, "executionContext");
  AssertArgument.isNotNullAndNotEmpty(beanId, "beanId");
  AssertArgument.isNotNull(bean, "bean");
  BeanId beanIdObj = getBeanId(executionContext.getContext().getBeanIdStore(), beanId);
  executionContext.getBeanContext().addBean(beanIdObj, bean, null);
}

代码示例来源:origin: org.milyn/milyn-smooks-javabean

/**
 * Changes a bean object of the given beanId. The difference to addBean is that the
 * bean must exist, the associated beans aren't removed and the observers of the
 * {@link BeanLifecycle#CHANGE} event are notified.
 *
 * @param executionContext The execution context within which the bean is created.
 * @param beanId The beanId under which the bean is to be stored.
 * @param bean The bean instance to be stored.
 */
public static void changeBean(ExecutionContext executionContext, String beanId, Object bean) {
  warnUsingDeprecatedMethod();
  AssertArgument.isNotNull(executionContext, "executionContext");
  AssertArgument.isNotNullAndNotEmpty(beanId, "beanId");
  AssertArgument.isNotNull(bean, "bean");
  BeanId beanIdObj = getBeanId(executionContext.getContext().getBeanIdStore(), beanId);
  executionContext.getBeanContext().changeBean(beanIdObj, bean, null);
}

代码示例来源:origin: org.milyn/milyn-smooks-all

/**
 * Changes a bean object of the given beanId. The difference to addBean is that the
 * bean must exist, the associated beans aren't removed and the observers of the
 * {@link BeanLifecycle#CHANGE} event are notified.
 *
 * @param executionContext The execution context within which the bean is created.
 * @param beanId The beanId under which the bean is to be stored.
 * @param bean The bean instance to be stored.
 */
public static void changeBean(ExecutionContext executionContext, String beanId, Object bean) {
  warnUsingDeprecatedMethod();
  AssertArgument.isNotNull(executionContext, "executionContext");
  AssertArgument.isNotNullAndNotEmpty(beanId, "beanId");
  AssertArgument.isNotNull(bean, "bean");
  BeanId beanIdObj = getBeanId(executionContext.getContext().getBeanIdStore(), beanId);
  executionContext.getBeanContext().changeBean(beanIdObj, bean, null);
}

代码示例来源:origin: org.milyn/milyn-smooks-all

List<Map<String, Object>> resultMap;
ApplicationContext appContext = executionContext.getContext();
ResultSetContextObject rsContextObj = ResultSetContextObject.getInstance(rsAppContextKey, appContext);

代码示例来源:origin: org.virtuslab/milyn-smooks-routing

List<Map<String, Object>> resultMap;
ApplicationContext appContext = executionContext.getContext();
ResultSetContextObject rsContextObj = ResultSetContextObject.getInstance(rsAppContextKey, appContext);

相关文章