@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 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 final void buildRecordMetaData() { vfRecordMetaData = new VariableFieldRecordMetaData(recordElementName, fields); }
/** * 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); }
@Initialize public void preRegBeanIds() { for(String preRegBeanId : mapBeans) { mapBeanIds.add(applicationContext.getBeanIdStore().register(preRegBeanId)); } }
@Initialize public void addToExportsInApplicationContext() { initExtractSet(); Exports.addExport(applicationContext, this); }
@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); }
@Initialize public void intitialize() throws SmooksConfigurationException { BeanIdStore beanIdStore = appContext.getBeanIdStore(); beanIdObj = beanIdStore.register(beanId); resultSetBeanId = beanIdStore.register(resultSetName); }
@Initialize public void initialize() { ElementNameFormatter elementNameFormatter = new ElementNameFormatter(initKeyMap(), keyWhitspaceReplacement, keyPrefixOnNumeric, illegalElementNameCharReplacement); yamlEventStreamParser = new YamlEventStreamHandler(elementNameFormatter, documentName, arrayElementName); } /*
@Initialize public void createBeanWriter() { try { BeanWriter beanWriter = beanWriterClass.newInstance(); Configurator.configure(beanWriter, config, appContext); getBeanWriters(beanClass, appContext).put(config.getSelectorNamespaceURI(), beanWriter); } catch (InstantiationException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } }
@Initialize public void initialize() { beanId = appContext.getBeanIdStore().register(beanIdName); countDirection = CountDirection.valueOf(direction); }
@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); }
@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); }
@Initialize public void initialize() throws SmooksConfigurationException { beanId = appContext.getBeanIdStore().getBeanId(STATVAR); if(beanId == null) { beanId = appContext.getBeanIdStore().register(STATVAR); } }
@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); }
@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; }