org.apache.openejb.test.interceptor
Class ClassInterceptor

java.lang.Object
  extended by org.apache.openejb.test.interceptor.SuperClassInterceptor
      extended by org.apache.openejb.test.interceptor.ClassInterceptor

public class ClassInterceptor
extends SuperClassInterceptor

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

Constructor Summary
ClassInterceptor()
           
 
Method Summary
 Object classInterceptor(javax.interceptor.InvocationContext ctx)
          The interceptor method.
 void classInterceptorPostActivate(javax.interceptor.InvocationContext ctx)
          The interceptor method.
 void classInterceptorPostConstruct(javax.interceptor.InvocationContext ctx)
          The interceptor method.
 void classInterceptorPreDestroy(javax.interceptor.InvocationContext ctx)
          The interceptor method.
 void classInterceptorPrePassivate(javax.interceptor.InvocationContext ctx)
          The interceptor method.
 
Methods inherited from class org.apache.openejb.test.interceptor.SuperClassInterceptor
superClassInterceptor, superClassInterceptorPostActivate, superClassInterceptorPostConstruct, superClassInterceptorPreDestroy, superClassInterceptorPrePassivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassInterceptor

public ClassInterceptor()
Method Detail

classInterceptor

public Object classInterceptor(javax.interceptor.InvocationContext ctx)
                        throws Exception
The interceptor method. This should intercept all business methods in this bean class except those annotated with @ExcludeClassInterceptors

Parameters:
ctx - - InvocationContext
Returns:
- the result of the next method invoked. If a method returns void, proceed returns null. For lifecycle callback interceptor methods, if there is no callback method defined on the bean class, the invocation of proceed in the last interceptor method in the chain is a no-op, and null is returned. If there is more than one such interceptor method, the invocation of proceed causes the container to execute those methods in order.
Throws:
runtime - exceptions or application exceptions that are allowed in the throws clause of the business method.
Exception

classInterceptorPostConstruct

@PostConstruct
public void classInterceptorPostConstruct(javax.interceptor.InvocationContext ctx)
                                   throws Exception
The interceptor method. This should intercept postConstruct of the bean

Parameters:
ctx - - InvocationContext
Throws:
runtime - exceptions.
Exception

classInterceptorPostActivate

public void classInterceptorPostActivate(javax.interceptor.InvocationContext ctx)
                                  throws Exception
The interceptor method. This should intercept postActivate of the bean

Parameters:
ctx - - InvocationContext
Throws:
runtime - exceptions.
Exception

classInterceptorPrePassivate

public void classInterceptorPrePassivate(javax.interceptor.InvocationContext ctx)
                                  throws Exception
The interceptor method. This should intercept prePassivate of the bean.

Parameters:
ctx - - InvocationContext
Throws:
runtime - exceptions.
Exception

classInterceptorPreDestroy

@PreDestroy
public void classInterceptorPreDestroy(javax.interceptor.InvocationContext ctx)
                                throws Exception
The interceptor method. This should intercept preDestroy of the bean.

Parameters:
ctx - - InvocationContext
Throws:
runtime - exceptions.
Exception


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