Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0-beta-1
-
None
Description
Implement an InvocationContext for interceptor chain. The rule with all standard interface implementations is to not expose any additional methods; this may require a wrapper implementation that delegates to a fully functional implementation.
package javax.ejb;
public interface InvocationContext {
public Object getBean();
public Method getMethod();
public Object[] getParameters();
public void setParameters(Object[] parameters);
public java.util.Map getContextData();
public Object proceed() throws Exception;
}
note: getMethod returns null for lifecycle callbacks
note: proceed returns null for void methods
note: context data lives only for one chain invocation
question: how many times can proceed be called by an interceptor?