public class UrlPatternMergeStrategyResolver extends Object implements DescriptorMergeStrategyResolver
DescriptorMergeStrategy to use for a given descriptor by matching the descriptor URL
to a pattern.| Constructor and Description |
|---|
UrlPatternMergeStrategyResolver() |
| Modifier and Type | Method and Description |
|---|---|
DescriptorMergeStrategy |
getStrategy(String descriptorUrl,
org.dom4j.Document descriptorDom)
Returns a
DescriptorMergeStrategy for a given descriptor, picked by matching the descriptor URL to a
pattern associated to the strategy. |
void |
setUrlPatternToStrategyMappings(Map<String,DescriptorMergeStrategy> urlPatternToStrategyMappings) |
public void setUrlPatternToStrategyMappings(Map<String,DescriptorMergeStrategy> urlPatternToStrategyMappings)
public DescriptorMergeStrategy getStrategy(String descriptorUrl, org.dom4j.Document descriptorDom)
DescriptorMergeStrategy for a given descriptor, picked by matching the descriptor URL to a
pattern associated to the strategy.getStrategy in interface DescriptorMergeStrategyResolverdescriptorUrl - the URL that identifies the descriptordescriptorDom - the XML DOM of the descriptorDescriptorMergeStrategy for the descriptor, or null if the descriptor URL doesn't
match any pattern.Copyright © 2018 CrafterCMS. All rights reserved.