org.milyn.persistence.config.ext
Class SetSelectorFromBeanCreator
java.lang.Object
org.milyn.persistence.config.ext.SetSelectorFromBeanCreator
- All Implemented Interfaces:
- org.milyn.delivery.ContentHandler, org.milyn.delivery.dom.DOMVisitBefore, org.milyn.delivery.dom.DOMVisitor, org.milyn.delivery.Visitor
public class SetSelectorFromBeanCreator
- extends Object
- implements org.milyn.delivery.dom.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
|
Method Summary |
org.milyn.cdr.SmooksResourceConfiguration |
findBeanCreatorConfig(String beanId,
org.milyn.cdr.extension.ExtensionContext extensionContext)
|
void |
visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetSelectorFromBeanCreator
public SetSelectorFromBeanCreator()
visitBefore
public void visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException
- Specified by:
visitBefore in interface org.milyn.delivery.dom.DOMVisitBefore
- Throws:
org.milyn.SmooksException
findBeanCreatorConfig
public org.milyn.cdr.SmooksResourceConfiguration findBeanCreatorConfig(String beanId,
org.milyn.cdr.extension.ExtensionContext extensionContext)
Copyright © 2018. All rights reserved.