org.broadleafcommerce.common.extensibility.context
Class MergeApplicationContextXmlConfigResource

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

public class MergeApplicationContextXmlConfigResource
extends MergeXmlConfigResource

Author:
jfischer

Constructor Summary
MergeApplicationContextXmlConfigResource()
           
 
Method Summary
 org.springframework.core.io.Resource[] getConfigResources(ResourceInputStream[] sources, ResourceInputStream[] patches)
          Generate a merged configuration resource, loading the definitions from the given streams.
 
Methods inherited from class org.broadleafcommerce.common.extensibility.context.merge.MergeXmlConfigResource
buildArrayFromStream, getMergedConfigResource, merge, mergeItems, serialize, serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeApplicationContextXmlConfigResource

public MergeApplicationContextXmlConfigResource()
Method Detail

getConfigResources

public org.springframework.core.io.Resource[] getConfigResources(ResourceInputStream[] sources,
                                                                 ResourceInputStream[] patches)
                                                          throws org.springframework.beans.BeansException
Generate a merged configuration resource, loading the definitions from the given streams. Note, all sourceLocation streams will be merged using standard Spring configuration override rules. However, the patch streams are fully merged into the result of the sourceLocations simple merge. Patch merges are first executed according to beans with the same id. Subsequent merges within a bean are executed against tagnames - ignoring any further id attributes.

Parameters:
sources - array of input streams for the source application context files
patches - array of input streams for the patch application context files
Throws:
org.springframework.beans.BeansException


Copyright © 2012. All Rights Reserved.