public class EntityLocator extends Object implements org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.ordering.Producer, org.milyn.delivery.ordering.Consumer
<?xml version="1.0"?>
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
xmlns:dao="http://www.milyn.org/xsd/smooks/persistence-1.2.xsd">
<dao:locator beanId="entity" lookup="something" lookupOnElement="b">
<dao:params>
<dao:value name="arg1" decoder="Integer" data="c" />
<dao:expression name="arg2">dAnde.d + dAnde.e</dao:expression>
<dao:wiring name="arg3" beanIdRef="dAnde" wireOnElement="e" />
<dao:value name="arg4" data="f/@name" />
<dao:value name="arg5" decoder="Date" data="g" >
<dao:decodeParam name="format">yyyy-MM-dd HH:mm:ss</dao:decodeParam>
</dao:value>
</dao:params>
</dao:locator>
<dao:locator beanId="customer" lookupOnElement="b">
<dao:query>from Customer c where c.id = :arg1</dao:query>
<dao:params>
<dao:value name="arg1" decoder="Integer" data="c" />
</dao:params>
</dao:locator>
</smooks-resource-list>
| Constructor and Description |
|---|
EntityLocator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consumes(Object object) |
Set<? extends Object> |
getProducts() |
void |
initialize() |
void |
initParameterContainer(org.milyn.container.ExecutionContext executionContext) |
void |
lookup(org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source) |
Object |
lookup(Object dao,
org.milyn.container.ExecutionContext executionContext) |
void |
visitAfter(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext) |
@Initialize
public void initialize()
throws org.milyn.cdr.SmooksConfigurationException
org.milyn.cdr.SmooksConfigurationExceptionpublic Set<? extends Object> getProducts()
getProducts in interface org.milyn.delivery.ordering.Producerpublic boolean consumes(Object object)
consumes in interface org.milyn.delivery.ordering.Consumerpublic void visitBefore(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitBefore in interface org.milyn.delivery.dom.DOMVisitBeforeorg.milyn.SmooksExceptionpublic void visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitBefore in interface org.milyn.delivery.sax.SAXVisitBeforeorg.milyn.SmooksExceptionIOExceptionpublic void visitAfter(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfterorg.milyn.SmooksExceptionpublic void visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfterorg.milyn.SmooksExceptionIOExceptionpublic void initParameterContainer(org.milyn.container.ExecutionContext executionContext)
public void lookup(org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source)
Copyright © 2016. All rights reserved.