@Uninitialize public void closeSmooksInstance() { if(smooksInstance != null) { smooksInstance.close(); } }
@Initialize public void initialize() throws SmooksConfigurationException { if(parentRelIndex >= 0) { throw new SmooksConfigurationException("param 'parentRelIndex' value must be negative. Value is '" + parentRelIndex + "'."); } }
private void registerInstalledHandlerFactories() { for (Class<ContentHandlerFactory> handlerFactory : handlerFactories) { Resource resourceAnnotation = handlerFactory.getAnnotation(Resource.class); if(resourceAnnotation != null) { addHandlerFactoryConfig(handlerFactory, resourceAnnotation.type()); } } // And add the Java handler... addHandlerFactoryConfig(JavaContentHandlerFactory.class, "class"); }
/** * Initialize the visitor instance. */ @Initialize public void initialize() { targetAttribute = config.getTargetAttribute(); }
@Uninitialize public void uninitialize() throws JMSException { releaseJMSResources(); }
@Initialize public void setExportsInAppContext() { Exports.setExportsInApplicationContext(applicationContext, this); }
@Uninitialize public void uninitialize() { try { producerTemplate.stop(); } catch (final Exception e) { throw new SmooksException(e.getMessage(), e); } }
@Initialize public void init() { int prefixQualifier = qName.indexOf(':'); if(prefixQualifier != -1) { localPart = qName.substring(prefixQualifier + 1); // Default the namespace to xmlns if undefined and the prefix is "xmlns"... if(namespace == null && qName.substring(0, prefixQualifier).equals(XMLConstants.XMLNS_ATTRIBUTE)) { namespace = XMLConstants.XMLNS_ATTRIBUTE_NS_URI; } } else { localPart = qName; // Default the namespace to xmlns if undefined and the localPart is "xmlns"... if(namespace == null && localPart.equals(XMLConstants.XMLNS_ATTRIBUTE)) { namespace = XMLConstants.XMLNS_ATTRIBUTE_NS_URI; } } }
@Initialize public final void buildRecordMetaData() { vfRecordMetaData = new VariableFieldRecordMetaData(recordElementName, fields); }
@Initialize public void initialize() { buildFields(); }
@Initialize public void initialize() { buildFields(); }
@Initialize public void intialize() { xstreamReader = new SaxWriter(includeEnclosingDocument); }
@Initialize public void initialize() { objectStore = new ApplicationContextObjectStore(appContext); }
@Initialize public void initialize() { beanIDSet = CollectionsUtil.toSet(beanIDs); }
@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 addToExportsInApplicationContext() { initExtractSet(); Exports.addExport(applicationContext, this); }
@Initialize public void initialize() throws SmooksConfigurationException { beanId = applicationContext.getBeanIdStore().getBeanId(beanIdName); }
@Initialize public void intitialize() throws SmooksConfigurationException { BeanIdStore beanIdStore = appContext.getBeanIdStore(); beanIdObj = beanIdStore.register(beanId); resultSetBeanId = beanIdStore.register(resultSetName); }
@Initialize public void initialize() throws SmooksConfigurationException { beanId = appContext.getBeanIdStore().getBeanId(STATVAR); if(beanId == null) { beanId = appContext.getBeanIdStore().register(STATVAR); } }