if(item.equals(f)) {
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { // Push a new DOMCreator onto the DOMCreator stack and install it in the // Dynamic Vistor list in the SAX handler... pushCreator(new DOMCreator(), executionContext); }
/** * Add a delivery unit mapping for the specified selector. * * @param elementName The target element for the content handler. * @param resourceConfig Resource configuration. * @param contentHandler The delivery unit. */ public void addMapping(String elementName, SmooksResourceConfiguration resourceConfig, T contentHandler) { addMapping(elementName, new ContentHandlerConfigMap<T>(contentHandler, resourceConfig)); }
/** * Private (hidden) constructor. * @param profileSet Profile set. * @param applicationContext Container context. */ private ContentDeliveryConfigBuilder(ProfileSet profileSet, ApplicationContext applicationContext) { this.profileSet = profileSet; this.applicationContext = applicationContext; visitorConfig = new VisitorConfigMap(applicationContext); visitorConfig.setConfigBuilderEvents(configBuilderEvents); }
/** * Add a visitor instances to <code>this</code> Smooks instance * via a {@link VisitorAppender}. * * @param appender The visitor appender. */ public void addVisitor(VisitorAppender appender) { appender.addVisitors(visitorConfigMap); }
public void executeHandlerInit(ExecutionContext executionContext) { for(ExecutionLifecycleInitializable handler : execInitializableHandlers) { handler.executeExecutionLifecycleInitialize(executionContext); } }
private int score(DependencySpec spec) { int score = 0; if(spec.visitor.getContentHandler() instanceof Producer) { score += 2; } if(spec.visitor.getContentHandler() instanceof Consumer) { score -= 1; } return score; } });
public void visitAfter(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { // Pop the DOMCreator off the DOMCreator stack and uninstall it from the // Dynamic Vistor list in the SAX handler... popCreator(executionContext); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { // Push a new DOMCreator onto the DOMCreator stack and install it in the // Dynamic Vistor list in the SAX handler... pushCreator(new DOMCreator(), executionContext); }
/** * Add a delivery unit mapping for the specified selector. * * @param elementName The target element for the content handler. * @param resourceConfig Resource configuration. * @param contentHandler The delivery unit. */ public void addMapping(String elementName, SmooksResourceConfiguration resourceConfig, T contentHandler) { addMapping(elementName, new ContentHandlerConfigMap<T>(contentHandler, resourceConfig)); }
public void sort() throws SmooksConfigurationException { assemblyVisitBefores.sort(Sorter.SortOrder.PRODUCERS_FIRST); assemblyVisitAfters.sort(Sorter.SortOrder.CONSUMERS_FIRST); processingVisitBefores.sort(Sorter.SortOrder.PRODUCERS_FIRST); processingVisitAfters.sort(Sorter.SortOrder.CONSUMERS_FIRST); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { // Push a new DOMCreator onto the DOMCreator stack and install it in the // Dynamic Vistor list in the SAX handler... pushCreator(new DOMCreator(), executionContext); }
/** * Add a delivery unit mapping for the specified selector. * * @param elementName The target element for the content handler. * @param resourceConfig Resource configuration. * @param contentHandler The delivery unit. */ public void addMapping(String elementName, SmooksResourceConfiguration resourceConfig, T contentHandler) { addMapping(elementName, new ContentHandlerConfigMap<T>(contentHandler, resourceConfig)); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { // Push a new DOMCreator onto the DOMCreator stack and install it in the // Dynamic Vistor list in the SAX handler... pushCreator(new DOMCreator(), executionContext); }
/** * Add a delivery unit mapping for the specified selector. * * @param elementName The target element for the content handler. * @param resourceConfig Resource configuration. * @param contentHandler The delivery unit. */ public void addMapping(String elementName, SmooksResourceConfiguration resourceConfig, T contentHandler) { addMapping(elementName, new ContentHandlerConfigMap<T>(contentHandler, resourceConfig)); }