org.broadleafcommerce.common.extensibility.context.merge
Class ImportProcessor

java.lang.Object
  extended by org.broadleafcommerce.common.extensibility.context.merge.ImportProcessor

public class ImportProcessor
extends Object

This class serves to parse any passed in source application context files and look for the Spring "import" element. If found, the resource of the import element is retrieved and set as another source element after the current one. Also, once the resource is retrieved and included, the import element is deleted from the source document.

Author:
Jeff Fischer

Field Summary
protected  org.springframework.context.ApplicationContext applicationContext
           
protected  DocumentBuilder builder
           
protected  XPath xPath
           
 
Constructor Summary
ImportProcessor(org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
 ResourceInputStream[] extract(ResourceInputStream[] sources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected org.springframework.context.ApplicationContext applicationContext

builder

protected DocumentBuilder builder

xPath

protected XPath xPath
Constructor Detail

ImportProcessor

public ImportProcessor(org.springframework.context.ApplicationContext applicationContext)
Method Detail

extract

public ResourceInputStream[] extract(ResourceInputStream[] sources)
                              throws MergeException
Throws:
MergeException


Copyright © 2013. All Rights Reserved.