org.apache.servicemix.scripting
Interface ScriptingMarshalerSupport

All Known Implementing Classes:
DefaultScriptingMarshaler

public interface ScriptingMarshalerSupport

Author:
lhein

Method Summary
 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
 

Method Detail

onStartup

void onStartup(ScriptingEndpoint endpoint)
               throws java.lang.Exception
hook method to allow a custom marshaler to do things on endpoint startup

Parameters:
endpoint - the endpoint
Throws:
java.lang.Exception - on any exception

onShutdown

void onShutdown(ScriptingEndpoint endpoint)
                throws java.lang.Exception
hook method to allow a custom marshaler to do things on endpoint shutdown

Parameters:
endpoint - the endpoint
Throws:
java.lang.Exception - on any exception

getScriptCode

java.io.InputStream getScriptCode(ScriptingEndpoint endpoint,
                                  javax.jbi.messaging.MessageExchange exchange)
                                  throws java.io.IOException
returns the code of the script as input stream

Parameters:
endpoint - the endpoint
exchange - the message exchange
Returns:
the code of the script as string
Throws:
java.io.IOException

registerUserBeans

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

Parameters:
endpoint - the endpoint
exchange - the exchange
bindings - the bindings


Copyright © 2005-2012 FuseSource. All Rights Reserved.