org.springframework.jee.intercept
Interface __ProxyControl


public interface __ProxyControl

Interface introduced into JEE component proxies that allows invocation of lifecycle interfaces.

Each singleton class may have a chain of interceptors. These may have annotated (or otherwise configured) lifecycle listener methods, distinct from the interceptor's own PostConstruct and other lifecycle interfaces. As these methods are identified by annotations or other metadata, there is no interface that can be used to drive them. This interface serves that purpose, and can be invoked to invoke any callback event listener methods, in the order of the interceptor chain.
See EJB 3.0 specification, 11.4.

Intended for container use only, hence __ prefix to name.

Author:
Rod Johnson

Method Summary
 java.util.List<JeeInterceptorPointcutAdvisor> getJeeInterceptorAdvisors()
          Return the Spring AOP advisors wrapping JEE interceptors.
 InterceptionMetadata getMetadata()
          Return the metadata associated with this proxy
 void invokeLifecycleMethod(LifecycleEvent le)
          Invoke the given lifecycle method on the singleton instance and any interceptors that listen to it
 

Method Detail

invokeLifecycleMethod

void invokeLifecycleMethod(LifecycleEvent le)
Invoke the given lifecycle method on the singleton instance and any interceptors that listen to it

Parameters:
le - lifefycle event
See Also:
LifecycleEvent

getMetadata

InterceptionMetadata getMetadata()
Return the metadata associated with this proxy

Returns:
the metadata associated with this proxy

getJeeInterceptorAdvisors

java.util.List<JeeInterceptorPointcutAdvisor> getJeeInterceptorAdvisors()
Return the Spring AOP advisors wrapping JEE interceptors. Note that casting the proxy to the Spring AOP Advised proxy control interface will allow access to all Spring AOP advisors, including advisors wrapping JEE interceptors.

Returns:
advisors, from which we can obtain the JEE interceptor instances for the current proxy


Copyright 2006 Interface21. All Rights Reserved.