@Initialize public void initialize() throws SmooksConfigurationException { if(parentRelIndex >= 0) { throw new SmooksConfigurationException("param 'parentRelIndex' value must be negative. Value is '" + parentRelIndex + "'."); } }
@Initialize public void initialize() throws SmooksConfigurationException { if(parentRelIndex >= 0) { throw new SmooksConfigurationException("param 'parentRelIndex' value must be negative. Value is '" + parentRelIndex + "'."); } }
@Initialize public void initialize() throws IllegalAccessException, InstantiationException { parserFactory = parserFactoryClass.newInstance(); Configurator.configure(parserFactory, config, appContext); }
@Initialize public void initialize() { initKeyMap(); doKeyReplacement = !keyMap.isEmpty(); doKeyWhitspaceReplacement = keyWhitspaceReplacement != null; doPrefixOnNumericKey = keyPrefixOnNumeric != null; doIllegalElementNameCharReplacement = illegalElementNameCharReplacement != null; }
@Initialize public void setExportsInAppContext() { Exports.setExportsInApplicationContext(applicationContext, this); }
/** * Initialize the visitor instance. */ @Initialize public void initialize() { targetAttribute = config.getTargetAttribute(); }
@Initialize public void initialize() throws SmooksConfigurationException { if(parentRelIndex >= 0) { throw new SmooksConfigurationException("param 'parentRelIndex' value must be negative. Value is '" + parentRelIndex + "'."); } }
/** * Initialize the visitor instance. */ @Initialize public void initialize() { targetAttribute = config.getTargetAttribute(); }
@Initialize public void setExportsInAppContext() { Exports.setExportsInApplicationContext(applicationContext, this); }
@Initialize public void setExportsInAppContext() { Exports.setExportsInApplicationContext(applicationContext, this); }
@Initialize public void initialize() throws IllegalAccessException, InstantiationException { parserFactory = parserFactoryClass.newInstance(); Configurator.configure(parserFactory, config, appContext); }
/** * 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 + "]."); } }
@Initialize public void initialize() throws IOException { String templateText = StreamUtils.readStreamAsString(getClass().getResourceAsStream("ScriptedGroovy.ftl")); classTemplate = new FreeMarkerTemplate(templateText); }
/** * 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 + "]."); } }
@Initialize public void initialize() throws IOException { String templateText = StreamUtils.readStreamAsString(getClass().getResourceAsStream("ScriptedGroovy.ftl")); classTemplate = new FreeMarkerTemplate(templateText); }
/** * 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 + "]."); } }
@Initialize public void preRegBeanIds() { for(String preRegBeanId : mapBeans) { mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId)); } }
@Initialize public void preRegBeanIds() { for(String preRegBeanId : mapBeans) { mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId)); } }
@Initialize public void preRegBeanIds() { for(String preRegBeanId : mapBeans) { mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId)); } }
/** * Load the namespace prefix-to-uri mappings into the {@link ApplicationContext}. */ @Initialize public void loadNamespaces() { Properties namespaces = getMappings(appContext); Properties namespacesToAdd = config.toProperties(); if(logger.isDebugEnabled()) { logger.debug("Adding namespace prefix-to-uri mappings: " + namespacesToAdd); } namespaces.putAll(namespacesToAdd); setMappings(namespaces, appContext); }