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

x33g5p2x  于2022-01-17 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(108)

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

ApplicationContext.getBeanIdStore介绍

[英]Get the BeanIdStore in use within this Context
[中]在此上下文中获取正在使用的BeanIdStore

代码示例

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

/**
 * Set the resource configuration on the bean populator.
 * @throws SmooksConfigurationException Incorrectly configured resource.
 */
@Initialize
public void initialize() throws SmooksConfigurationException {
  isAttribute = (valueAttributeName != null);
  beanId = appContext.getBeanIdStore().register(beanIdName);
  if(logger.isDebugEnabled()) {
    logger.debug("Value Binder created for [" + beanIdName + "].");
  }
}

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

/**
 * Set the resource configuration on the bean populator.
 * @throws SmooksConfigurationException Incorrectly configured resource.
 */
@Initialize
public void initialize() throws SmooksConfigurationException {
  isAttribute = (valueAttributeName != null);
  beanId = appContext.getBeanIdStore().register(beanIdName);
  if(logger.isDebugEnabled()) {
    logger.debug("Value Binder created for [" + beanIdName + "].");
  }
}

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

@Initialize
public void initialize() throws SmooksConfigurationException {
  beanId = appContext.getBeanIdStore().getBeanId(STATVAR);
  if(beanId == null) {
    beanId = appContext.getBeanIdStore().register(STATVAR);
  }
}

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

@Initialize
public void initialize() throws SmooksConfigurationException {
  beanId = appContext.getBeanIdStore().getBeanId(STATVAR);
  if(beanId == null) {
    beanId = appContext.getBeanIdStore().register(STATVAR);
  }
}

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

@Initialize
public void initialize() throws SmooksConfigurationException {
  beanId = appContext.getBeanIdStore().getBeanId(STATVAR);
  if(beanId == null) {
    beanId = appContext.getBeanIdStore().register(STATVAR);
  }
}

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

/**
 * Set the resource configuration on the bean populator.
 * @throws SmooksConfigurationException Incorrectly configured resource.
 */
@Initialize
public void initialize() throws SmooksConfigurationException {
  isAttribute = (valueAttributeName != null);
  beanId = appContext.getBeanIdStore().register(beanIdName);
  if(logger.isDebugEnabled()) {
    logger.debug("Value Binder created for [" + beanIdName + "].");
  }
}

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

@Initialize
public void preRegBeanIds() {
  for(String preRegBeanId : mapBeans) {
    mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId));
  }
}

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

@Initialize
public void preRegBeanIds() {
  for(String preRegBeanId : mapBeans) {
    mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId));
  }
}

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

@Initialize
public void preRegBeanIds() {
  for(String preRegBeanId : mapBeans) {
    mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId));
  }
}

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

@Initialize
public void initialize() throws SmooksConfigurationException {
  if(StringUtils.isEmpty(lookupName) && StringUtils.isEmpty(query)) {
    throw new SmooksConfigurationException("A lookup name or  a query  needs to be set to be able to lookup anything");
  }
  if(StringUtils.isNotEmpty(lookupName) && StringUtils.isNotEmpty(query)) {
    throw new SmooksConfigurationException("Both the lookup name and the query can't be set at the same time");
  }
  beanId = appContext.getBeanIdStore().register(beanIdName);
  parameterIndex = ParameterManager.initializeParameterIndex(id, parameterListType, appContext);
  objectStore = new ApplicationContextObjectStore(appContext);
}

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

@Initialize
public void initialize() {
  beanId = appContext.getBeanIdStore().register(beanIdName);
  countDirection = CountDirection.valueOf(direction);
}

代码示例来源: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

@Initialize
public void initialize() {
  beanId = appContext.getBeanIdStore().register(beanIdName);
  countDirection = CountDirection.valueOf(direction);
}

代码示例来源: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-all

@Initialize
public void initialize() throws SmooksConfigurationException {
  BeanIdStore beanIdStore = appContext.getBeanIdStore();
  beanId = beanIdStore.register(beanIdName);
  if(updatedBeanIdName != null) {
    updatedBeanId = beanIdStore.register(updatedBeanIdName);
  }
  objectStore = new ApplicationContextObjectStore(appContext);
}

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

@Initialize
public void initialize() throws SmooksConfigurationException {
  BeanIdStore beanIdStore = appContext.getBeanIdStore();
  beanId = beanIdStore.register(beanIdName);
  if(deletedBeanIdName != null) {
    deletedBeanId = beanIdStore.register(deletedBeanIdName);
  }
  objectStore = new ApplicationContextObjectStore(appContext);
}

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

@Initialize
public void initialize() throws SmooksConfigurationException {
  BeanIdStore beanIdStore = appContext.getBeanIdStore();
  beanId = beanIdStore.register(beanIdName);
  if(insertedBeanIdName != null) {
    insertedBeanId = beanIdStore.register(insertedBeanIdName);
  }
  objectStore = new ApplicationContextObjectStore(appContext);
}

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

@Initialize
public void intitialize() throws SmooksConfigurationException {
  statementExec = new StatementExec(statement);
  if(statementExec.getStatementType() == StatementType.QUERY && resultSetName == null) {
    throw new SmooksConfigurationException("Sorry, query statements must be accompanied by a 'resultSetName' property, under whose value the query results are bound.");
  }
  if(resultSetName != null) {
    resultSetBeanId = appContext.getBeanIdStore().register(resultSetName);
  }
  rsAppContextKey = datasource + ":" + statement;
}

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

@Initialize
public void intitialize() throws SmooksConfigurationException {
  statementExec = new StatementExec(statement);
  if(statementExec.getStatementType() == StatementType.QUERY && resultSetName == null) {
    throw new SmooksConfigurationException("Sorry, query statements must be accompanied by a 'resultSetName' property, under whose value the query results are bound.");
  }
  if(resultSetName != null) {
    resultSetBeanId = appContext.getBeanIdStore().register(resultSetName);
  }
  rsAppContextKey = datasource + ":" + statement;
}

相关文章