Example usage for javax.interceptor InvocationContext getParameters

List of usage examples for javax.interceptor InvocationContext getParameters

Introduction

In this page you can find the example usage for javax.interceptor InvocationContext getParameters.

Prototype

public Object[] getParameters();

Source Link

Document

Returns the parameter values that will be passed to the method or constructor of the target class.

Usage

From source file:util.EJBLoggerAOPExample.java

@AroundInvoke
public Object logMethodEntry(InvocationContext invocationContext) throws Exception {
    //System.out.println("Entering method:" + invocationContext.getMethod().getName());
    log.info("Entering method:" + invocationContext.getMethod().getName());
    log.info(invocationContext.getParameters());
    return invocationContext.proceed();
}