org.apache.openejb.test.interceptor
Class Interceptor

java.lang.Object
  extended by org.apache.openejb.test.interceptor.Interceptor

public class Interceptor
extends Object

Version:
$Rev: 607077 $ $Date: 2007-12-27 15:55:23 +0100 (Do, 27. Dez 2007) $
Author:
Prasad Kashyap

Constructor Summary
Interceptor()
           
 
Method Summary
static Map<String,Object> profile(javax.interceptor.InvocationContext ctx, String interceptorName)
          This interceptor creates/updates an inner map for every method that it intercepts.
static Map<String,Object> profile(SuperInterceptedBean bean, String interceptorName)
          This is invoked by the lifecycle interceptor callback methods that are defined inside a bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interceptor

public Interceptor()
Method Detail

profile

public static Map<String,Object> profile(javax.interceptor.InvocationContext ctx,
                                         String interceptorName)
This interceptor creates/updates an inner map for every method that it intercepts. The inner map contains the array of method parameters in the key PARAMETERS. The inner map contains the list of interceptor methods in the key INTERCEPTORS. The inner map is put back into the contextData against the method name as the key.

Parameters:
ctx - - InvocationContext
interceptorName - name of the interceptor
Returns:
contextData - the contextData which now has been filled with a hashmap of hashmap.

profile

public static Map<String,Object> profile(SuperInterceptedBean bean,
                                         String interceptorName)
This is invoked by the lifecycle interceptor callback methods that are defined inside a bean.



Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.