org.realityforge.xinvoke
Interface Interceptor
- All Known Implementing Classes:
- GlobalJavaInvokeInterceptor, JavaInvokeInterceptor, NoopInterceptor, PassThroughInterceptor
- public interface Interceptor
The Interceptor is the component through which invocations
pass through. In most cases the invocations pass through a
series of Interceptor objects before the target object is
invoked.
Interceptors should not store any data relevent to a
particular invocation and potentially should not store
any data relevent to a particular target object (It depends
on the policy via which Interceptors are created via the
ProxyManager
).
- Version:
- $Revision: 1.1 $ $Date: 2003/04/16 10:47:00 $
- Author:
- Peter Donald
Method Summary |
void |
invoke(Invocation invocation)
Process a particular invocation. |
ROLE
public static final String ROLE
invoke
public void invoke(Invocation invocation)
- Process a particular invocation.
The method must NEVER throw an exception and any exceptions should
be caught and placed into the invocation via
Invocation.setThrowable(java.lang.Throwable)
.
Note: most Interceptors should pass control to the next Interceptor
in the series.
- Parameters:
invocation
- the invocation to process
Copyright © 2003 The Spice Group. All Rights Reserved.