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

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

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

ApplicationContext.getStore介绍

[英]Get the Store for from the container application context.
[中]从容器应用程序上下文获取的存储。

代码示例

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

private ContentHandlerExtractionStrategy(ApplicationContext applicationContext) {
  store = applicationContext.getStore();
}

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

private ContentHandlerExtractionStrategy(ApplicationContext applicationContext) {
  store = applicationContext.getStore();
}

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

public void attachGlobalParameters(ApplicationContext appContext) {
  if(globalParams == null) {
    globalParams = appContext.getStore().getGlobalParams();
  }
}

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

public void attachGlobalParameters(ApplicationContext appContext) {
  if(globalParams == null) {
    globalParams = appContext.getStore().getGlobalParams();
  }
}

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

public void attachGlobalParameters(ApplicationContext appContext) {
  if(globalParams == null) {
    globalParams = appContext.getStore().getGlobalParams();
  }
}

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

public void attachGlobalParameters(ApplicationContext appContext) {
  if(globalParams == null) {
    globalParams = appContext.getStore().getGlobalParams();
  }
}

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

/**
 * Register a {@link org.milyn.cdr.SmooksResourceConfiguration} on the supplied {@link Smooks} instance.
 *
 * @param resourceConfig The Resource Configuration to be  registered.
 * @param smooks         The {@link org.milyn.Smooks} instance on which to perform the configuration operation.
 */
public static void registerResource(SmooksResourceConfiguration resourceConfig, Smooks smooks) {
  if (resourceConfig == null) {
    throw new IllegalArgumentException("null 'resourceConfig' arg in method call.");
  }
  smooks.getApplicationContext().getStore().registerResource(resourceConfig);
}

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

/**
 * Register a {@link org.milyn.cdr.SmooksResourceConfiguration} on the supplied {@link Smooks} instance.
 *
 * @param resourceConfig The Resource Configuration to be  registered.
 * @param smooks         The {@link org.milyn.Smooks} instance on which to perform the configuration operation.
 */
public static void registerResource(SmooksResourceConfiguration resourceConfig, Smooks smooks) {
  if (resourceConfig == null) {
    throw new IllegalArgumentException("null 'resourceConfig' arg in method call.");
  }
  smooks.getApplicationContext().getStore().registerResource(resourceConfig);
}

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

/**
 * Register a {@link org.milyn.cdr.SmooksResourceConfiguration} on the supplied {@link Smooks} instance.
 *
 * @param resourceConfig The Resource Configuration to be  registered.
 * @param smooks         The {@link org.milyn.Smooks} instance on which to perform the configuration operation.
 */
public static void registerResource(SmooksResourceConfiguration resourceConfig, Smooks smooks) {
  if (resourceConfig == null) {
    throw new IllegalArgumentException("null 'resourceConfig' arg in method call.");
  }
  smooks.getApplicationContext().getStore().registerResource(resourceConfig);
}

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

/**
 * Register a {@link org.milyn.cdr.SmooksResourceConfiguration} on the supplied {@link Smooks} instance.
 *
 * @param resourceConfig The Resource Configuration to be  registered.
 * @param smooks         The {@link org.milyn.Smooks} instance on which to perform the configuration operation.
 */
public static void registerResource(SmooksResourceConfiguration resourceConfig, Smooks smooks) {
  if (resourceConfig == null) {
    throw new IllegalArgumentException("null 'resourceConfig' arg in method call.");
  }
  smooks.getApplicationContext().getStore().registerResource(resourceConfig);
}

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

private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) {
  List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects();
  for(Object object : initializedObjects) {
    if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) {
      ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event);
    }
  }
}

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

private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) {
  List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects();
  for(Object object : initializedObjects) {
    if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) {
      ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event);
    }
  }
}

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

private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) {
  List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects();
  for(Object object : initializedObjects) {
    if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) {
      ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event);
    }
  }
}

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

private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) {
  List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects();
  for(Object object : initializedObjects) {
    if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) {
      ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event);
    }
  }
}

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

protected SmooksResourceConfigurationList getUserDefinedResourceList() {
  return smooks.getApplicationContext().getStore().getUserDefinedResourceList();
}

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

protected SmooksResourceConfigurationList getUserDefinedResourceList() {
  return smooks.getApplicationContext().getStore().getUserDefinedResourceList();
}

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

public static void removeParameter(String name, Smooks smooks) {
    SmooksResourceConfigurationStore configStore = smooks.getApplicationContext().getStore();
    Iterator<SmooksResourceConfigurationList> configLists = configStore.getSmooksResourceConfigurationLists();

    while(configLists.hasNext()) {
      SmooksResourceConfigurationList list = configLists.next();
      for(int i = 0; i < list.size(); i++) {
        SmooksResourceConfiguration nextConfig = list.get(i);
        if(ParameterAccessor.GLOBAL_PARAMETERS.equals(nextConfig.getSelector())) {
          nextConfig.removeParameter(name);
        }
      }
    }
  }
}

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

public static void build(ApplicationContext appContext) {
  ModelSet modelSet = get(appContext);
  if(modelSet == null) {
    modelSet = new ModelSet(appContext.getStore().getUserDefinedResourceList());
    appContext.setAttribute(ModelSet.class, modelSet);
  }
}

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

public static void build(ApplicationContext appContext) {
  ModelSet modelSet = get(appContext);
  if(modelSet == null) {
    modelSet = new ModelSet(appContext.getStore().getUserDefinedResourceList());
    appContext.setAttribute(ModelSet.class, modelSet);
  }
}

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

public static void build(ApplicationContext appContext) {
  ModelSet modelSet = get(appContext);
  if(modelSet == null) {
    modelSet = new ModelSet(appContext.getStore().getUserDefinedResourceList());
    appContext.setAttribute(ModelSet.class, modelSet);
  }
}

相关文章