com.waveset.workflow
Interface Interceptor


public interface Interceptor


Method Summary
 WavesetResult callApplication(WorkflowApplication app, WorkflowContext context)
          Intercept an application call.
 WorkflowApplication getApplication(java.lang.String appname, WorkflowContext context)
          Return an alternate WorkflowApplication if you want to intercept the call.
 

Method Detail

getApplication

public WorkflowApplication getApplication(java.lang.String appname,
                                          WorkflowContext context)
Return an alternate WorkflowApplication if you want to intercept the call. You may also modify arguments and variables. This allows you to bypass class loading of the referenced application.


callApplication

public WavesetResult callApplication(WorkflowApplication app,
                                     WorkflowContext context)
                              throws WavesetException
Intercept an application call. After thinking about it you may pass allong the call() method. Here we've loaded the application class and are ready to call it, but you might want to get in the way.

Throws:
WavesetException