org.sape.carbon.core.component.proxy
Interface Interceptor

All Superinterfaces:
Decorator
All Known Implementing Classes:
AbstractInterceptor, DefaultConfigurationInterceptor, DefaultLifecycleInterceptor, DefaultManagementInterceptorImpl, DefaultStatisticsInterceptor, ProxyInvoker

public interface Interceptor
extends Decorator

This interface represents the abilities of a decorator to be added to a Component's interceptor chain. The interceptor chain is called from a component's facade for each invocation on that component.

Copyright 2003 Sapient

Since:
carbon 2.0
Version:
$Revision: 1.4 $($Author: dvoet $ / $Date: 2003/05/05 21:21:14 $)
Author:
Greg Hinkle, March 2003

Method Summary
 Object invoke(Invocation invocation)
          This method must implement the invocation of any necessary actions and the chaining the next interceptor.
 void setNextInterceptor(Interceptor interceptor)
          This method sets the next interceptor as the next in the chain from the current interceptor.
 
Methods inherited from interface org.sape.carbon.core.component.proxy.Decorator
getExposedInterfaces, setComponentReference
 

Method Detail

setNextInterceptor

public void setNextInterceptor(Interceptor interceptor)
This method sets the next interceptor as the next in the chain from the current interceptor.

Parameters:
interceptor - the next interceptor in the chain

invoke

public Object invoke(Invocation invocation)
              throws Throwable
This method must implement the invocation of any necessary actions and the chaining the next interceptor.

Parameters:
invocation - the invocation to execute
Returns:
the results of the invocation's execution
Throws:
Throwable - indicates an error on the invocation chain


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.