org.milyn.persistence.config.ext
Class SetSelectorFromBeanCreator

java.lang.Object
  extended by org.milyn.persistence.config.ext.SetSelectorFromBeanCreator
All Implemented Interfaces:
ContentHandler, DOMVisitBefore, DOMVisitor, Visitor

public class SetSelectorFromBeanCreator
extends Object
implements DOMVisitBefore

This resource tries to find a sensible default selector if no selector is set on the resource. It does this by searching for the resource that creates the bean which the current resource affects. For instance for the EntityInserter this means that it will set the selector to the same value as the bean creator that creates the bean that needs to be inserted.

Author:
maurice.zeijen@smies.com

Constructor Summary
SetSelectorFromBeanCreator()
           
 
Method Summary
 SmooksResourceConfiguration findBeanCreatorConfig(String beanId, ExtensionContext extensionContext)
           
 void visitBefore(Element element, ExecutionContext executionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetSelectorFromBeanCreator

public SetSelectorFromBeanCreator()
Method Detail

visitBefore

public void visitBefore(Element element,
                        ExecutionContext executionContext)
                 throws SmooksException
Specified by:
visitBefore in interface DOMVisitBefore
Throws:
SmooksException

findBeanCreatorConfig

public SmooksResourceConfiguration findBeanCreatorConfig(String beanId,
                                                         ExtensionContext extensionContext)


Copyright © 2011. All Rights Reserved.