org.oddjob.beanbus.destinations
Class TransformerScript<F,T>
java.lang.Object
org.oddjob.beanbus.AbstractDestination<F>
org.oddjob.beanbus.AbstractFilter<F,T>
org.oddjob.beanbus.destinations.TransformerScript<F,T>
- Type Parameters:
F
- The from type.T
- The to type.
- All Implemented Interfaces:
- Iterable<F>, Collection<F>, BusFilter<F,T>, Outbound<T>
public class TransformerScript<F,T>
- extends AbstractFilter<F,T>
Methods inherited from class org.oddjob.beanbus.AbstractDestination |
addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.Collection |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
TransformerScript
public TransformerScript()
configured
public void configured()
throws ScriptException
- Throws:
ScriptException
filter
protected T filter(F from)
- Specified by:
filter
in class AbstractFilter<F,T>
getScript
public String getScript()
setScript
public void setScript(String script)
getLanguage
public String getLanguage()
setLanguage
public void setLanguage(String language)
getClassLoader
public ClassLoader getClassLoader()
setClassLoader
@Inject
public void setClassLoader(ClassLoader classLoader)