ejb@glassfish.java.net

clarification needed on javax.interceptor.InvocationContext methods

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Fri, 03 Mar 2006 10:27:32 -0500 (EST)

    /**
     * Returns the context data associated with this invocation or
     * lifecycle callback.
     */
    public Map<String, Object> getContextData();

Can we explicitly state that if no context data has been set, it returns
an empty map, though people would assme so?


    /**
     * Returns the parameters that will be used to invoke
     * the business method. If setParameters has been called,
     * getParameters() returns the values to which the parameters
     * have been set.
     */
    public Object[] getParameters();

Does it return null for lifecycle callbacks?


    /**
     * Set the parameters that will be used to invoke the business method.
     *
     */
    public void setParameters(Object[] params);

Is it a noop for lifecycle callbacks, or IllegalStateException?



Thanks.
-- Cheng