InvocationHandler
class for managing Avalon Components
. Components retrieved from an Avalon ComponentManager must be returned to the manager when they are no longer required.
The returning of Components to their ComponentManager is handled by a Proxy class which uses the following InvocationHandler.
Each Component returned by this Provider is wrapped inside a Proxy class which implements all of the Component's interfaces including javax.xml.rpc.server.ServiceLifecycle.
When Axis is finished with the object returned by this provider, it invokes ServiceLifecycle.destroy(). This is intercepted by the InvocationHandler and the Component is returned at this time back to the ComponentManager it was retrieved from.
Note, when Axis invokes ServiceLifecycle.destroy() is dependant on the scope of the service (ie. Request, Session & Application).
|
|