Search in sources :

Example 1 with MetaDataProcessorResolver

use of org.craftercms.core.processors.impl.resolvers.MetaDataProcessorResolver in project core by craftercms.

the class MetaDataProcessorResolverTest method setUpTestResolver.

private void setUpTestResolver() {
    Map<String, ItemProcessor> processors = new HashMap<String, ItemProcessor>();
    processors.put(PROCESSOR1_ELEMENT_VALUE, processor1);
    processors.put(PROCESSOR2_ELEMENT_VALUE, processor2);
    resolver = new MetaDataProcessorResolver();
    resolver.setProcessorElementXPathQuery(PROCESSOR_ELEMENT_XPATH_QUERY);
    resolver.setElementValueToProcessorMappings(processors);
}
Also used : MetaDataProcessorResolver(org.craftercms.core.processors.impl.resolvers.MetaDataProcessorResolver) ItemProcessor(org.craftercms.core.processors.ItemProcessor) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 ItemProcessor (org.craftercms.core.processors.ItemProcessor)1 MetaDataProcessorResolver (org.craftercms.core.processors.impl.resolvers.MetaDataProcessorResolver)1