private ContentHandlerExtractionStrategy(ApplicationContext applicationContext) { store = applicationContext.getStore(); }
private ContentHandlerExtractionStrategy(ApplicationContext applicationContext) { store = applicationContext.getStore(); }
public void attachGlobalParameters(ApplicationContext appContext) { if(globalParams == null) { globalParams = appContext.getStore().getGlobalParams(); } }
public void attachGlobalParameters(ApplicationContext appContext) { if(globalParams == null) { globalParams = appContext.getStore().getGlobalParams(); } }
public void attachGlobalParameters(ApplicationContext appContext) { if(globalParams == null) { globalParams = appContext.getStore().getGlobalParams(); } }
public void attachGlobalParameters(ApplicationContext appContext) { if(globalParams == null) { globalParams = appContext.getStore().getGlobalParams(); } }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) { List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects(); for(Object object : initializedObjects) { if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) { ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event); } } }
private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) { List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects(); for(Object object : initializedObjects) { if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) { ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event); } } }
private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) { List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects(); for(Object object : initializedObjects) { if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) { ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event); } } }
private void fireEvent(ContentDeliveryConfigBuilderLifecycleEvent event) { List<Object> initializedObjects = applicationContext.getStore().getInitializedObjects(); for(Object object : initializedObjects) { if(object instanceof ContentDeliveryConfigBuilderLifecycleListener) { ((ContentDeliveryConfigBuilderLifecycleListener) object).handle(event); } } }
protected SmooksResourceConfigurationList getUserDefinedResourceList() { return smooks.getApplicationContext().getStore().getUserDefinedResourceList(); }
protected SmooksResourceConfigurationList getUserDefinedResourceList() { return smooks.getApplicationContext().getStore().getUserDefinedResourceList(); }
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); } } } } }
public static void build(ApplicationContext appContext) { ModelSet modelSet = get(appContext); if(modelSet == null) { modelSet = new ModelSet(appContext.getStore().getUserDefinedResourceList()); appContext.setAttribute(ModelSet.class, modelSet); } }
public static void build(ApplicationContext appContext) { ModelSet modelSet = get(appContext); if(modelSet == null) { modelSet = new ModelSet(appContext.getStore().getUserDefinedResourceList()); appContext.setAttribute(ModelSet.class, modelSet); } }
public static void build(ApplicationContext appContext) { ModelSet modelSet = get(appContext); if(modelSet == null) { modelSet = new ModelSet(appContext.getStore().getUserDefinedResourceList()); appContext.setAttribute(ModelSet.class, modelSet); } }