org.mule.api
Interface Interceptor
- All Known Subinterfaces:
- InterceptorStack, LifecycleAdapter
- All Known Implementing Classes:
- DefaultLifecycleAdapter, TestDefaultLifecycleAdapter
public interface Interceptor
Interceptor
is based on a similar concept of servlet filters and
works much the same way. This method is more commonally known as the interceptor
pattern and it allows for pre and processing of invocations on the object being
intercepted.
intercept
MuleMessage intercept(Invocation invocation)
throws MuleException
- Invoked by the previous interceptor in the chain
- Parameters:
invocation
- the invocation containing info about the current message and
service
- Returns:
- A result message that may have been altered by this invocation
- Throws:
MuleException
- if the invocation fails
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.