public class DefaultScriptingMarshaler extends java.lang.Object implements ScriptingMarshalerSupport
| Constructor and Description |
|---|
DefaultScriptingMarshaler() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getScriptCode(ScriptingEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
returns the code of the script as input stream
|
void |
onShutdown(ScriptingEndpoint endpoint)
hook method to allow a custom marshaler to do things on endpoint shutdown
|
void |
onStartup(ScriptingEndpoint endpoint)
hook method to allow a custom marshaler to do things on endpoint startup
|
void |
registerUserBeans(ScriptingEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange,
javax.script.Bindings bindings)
hook method for filling user beans into the available variables from
script
|
public void onStartup(ScriptingEndpoint endpoint) throws java.lang.Exception
ScriptingMarshalerSupportonStartup in interface ScriptingMarshalerSupportendpoint - the endpointjava.lang.Exception - on any exceptionpublic void onShutdown(ScriptingEndpoint endpoint) throws java.lang.Exception
ScriptingMarshalerSupportonShutdown in interface ScriptingMarshalerSupportendpoint - the endpointjava.lang.Exception - on any exceptionpublic void registerUserBeans(ScriptingEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange, javax.script.Bindings bindings)
ScriptingMarshalerSupportregisterUserBeans in interface ScriptingMarshalerSupportendpoint - the endpointexchange - the exchangebindings - the bindingspublic java.io.InputStream getScriptCode(ScriptingEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange) throws java.io.IOException
ScriptingMarshalerSupportgetScriptCode in interface ScriptingMarshalerSupportendpoint - the endpointexchange - the message exchangejava.io.IOExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.