Package org.milyn.delivery

Examples of org.milyn.delivery.ContentHandlerConfigMap


   * Add to the ProcessingSet.
   * @param processingUnit The Processing Unit to be added.
   * @param resourceConfig Corresponding resource config.
   */
  public void addProcessingUnit(DOMElementVisitor processingUnit, SmooksResourceConfiguration resourceConfig) {
        ContentHandlerConfigMap mapInst =
            new ContentHandlerConfigMap(processingUnit, resourceConfig);

        processingUnits.add(mapInst);
  }
View Full Code Here


        if(elementSUs != null) {
            int numSUs = elementSUs.size();

            for(int i = 0; i < numSUs; i++) {
                ContentHandlerConfigMap configMap = elementSUs.get(i);
                SmooksResourceConfiguration config = configMap.getResourceConfig();

                // Make sure the serialization unit is targeted at this element.
                if(!config.isTargetedAtElement(element, executionContext)) {
                    continue;
                }

                // Register the targeting event...
                if(eventListener != null) {
                    eventListener.onEvent(new ResourceTargetingEvent(element, config));
                }

                if(logger.isDebugEnabled()) {
                    logger.debug("Applying serialisation resource [" + config + "] to element [" + DomUtils.getXPath(element) + "].");
                }

                // This is the one, return it...
                return (SerializationUnit)configMap.getContentHandler();
            }
        }
       
        return defaultSerializationUnit;
  }
View Full Code Here

TOP

Related Classes of org.milyn.delivery.ContentHandlerConfigMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.