-
1. Re: How to use the Delegated Translator?
shawkins Nov 11, 2011 11:21 AM (in response to rakeshsagar)See also the javadoc for BaseDelegatingExecutionFactory. In short you create a new translator that is a subclass of BaseDelegatingExecutionFactory. That is just like any other custom translator development. In your BaseDelegatingExecutionFactory subclass you can override any of the delegation methods to perform whatever logic you want. When you use your new translator (let's call its type delegator) in a vdb, you define the translator by wiring in the delegate:
<translator type="delegator" name="my-translator">
<property value="delegateName" name="name of the delegate instance"/>
<!-- any custom properties you may have on your custom translator -->
</translator>
Now my-translator has will proxy all calls to whatever delegate instance you have assigned. Note that your delegate instance can be any translator instance and can be configured by it's own translator entry.
Steve
-
2. Re: How to use the Delegated Translator?
shawkins Nov 16, 2011 11:56 AM (in response to shawkins)Rakesh,
I logged and worked https://issues.jboss.org/browse/TEIID-1833 to exand our documentation about the delegating translator. Thanks for bringing it to our attention that it was missing.
Steve
-
3. Re: How to use the Delegated Translator?
rakeshsagar Nov 25, 2011 12:40 AM (in response to shawkins)Hi Steven,
Can you let me know where can I find the new documentation?
Thanks,
Rakesh
-
4. Re: How to use the Delegated Translator?
rareddy Nov 25, 2011 1:00 PM (in response to rakeshsagar)Check the Developer's Guide in upcoming 7.6 Release.