| java.lang.Object org.apache.cocoon.components.source.impl.AvalonToCocoonSourceInvocationHandler
AvalonToCocoonSourceInvocationHandler | public class AvalonToCocoonSourceInvocationHandler implements InvocationHandler(Code) | | An InvocationHandler which acts as a proxy for excalibur
Source objects to make them compatible with the cocoon
Source interface.
Much of the code was taken from
AvalonToCocoonSource .
author: Stefan Köhler author: Carsten Ziegeler version: CVS $Id: AvalonToCocoonSourceInvocationHandler.java 433543 2006-08-22 06:22:54Z crossley $ |
manager | protected ComponentManager manager(Code) | | The manager
|
resolver | protected SourceResolver resolver(Code) | | The source resolver
|
source | protected Source source(Code) | | The real source
|
AvalonToCocoonSourceInvocationHandler | public AvalonToCocoonSourceInvocationHandler(Source source, SourceResolver resolver, Environment environment, ComponentManager manager)(Code) | | Constructor
|
createProxy | public static org.apache.cocoon.environment.Source createProxy(Source source, SourceResolver resolver, Environment environment, ComponentManager manager) throws SourceException(Code) | | Creates a dynamic proxy for an excalibur Source object to
make it behave like a cocoon Source .
Parameters: source - the source object to be wrapped a proxy object which implements the cocoon Source interface and all of the interfaces that the wrapped objectimplements throws: SourceException - in case of an error |
getSystemId | public String getSystemId()(Code) | | Return the unique identifer for this source
|
invoke | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code) | | Processes a method invocation on a proxy instance and returns the result.
It invokes the corresponding method of the wrapped excalibur source.
Parameters: proxy - the Cocoon source proxy instance that the method was invoked on Parameters: method - the Method instance corresponding to the interface methodinvoked on the proxy instance. Parameters: args - the arguments for the interface method the result of the proxy method |
recycle | public void recycle()(Code) | | |
refresh | public void refresh()(Code) | | |
|
|