org.jboss.webbeans.ejb
Class SessionBeanInterceptor

java.lang.Object
  extended by org.jboss.webbeans.ejb.SessionBeanInterceptor
All Implemented Interfaces:
java.io.Serializable

public class SessionBeanInterceptor
extends java.lang.Object
implements java.io.Serializable

Interceptor for handling EJB post-construct tasks

Author:
Pete Muir
See Also:
Serialized Form

Constructor Summary
SessionBeanInterceptor()
           
 
Method Summary
protected  EnterpriseBean<java.lang.Object> getBean()
           
 void postConstruct(javax.interceptor.InvocationContext invocationContext)
          Gets the underlying target and calls the post-construct method
 void preDestroy(javax.interceptor.InvocationContext invocationContext)
          Gets the underlying target and calls the pre-destroy method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionBeanInterceptor

public SessionBeanInterceptor()
Method Detail

postConstruct

@PostConstruct
public void postConstruct(javax.interceptor.InvocationContext invocationContext)
                   throws java.lang.Exception
Gets the underlying target and calls the post-construct method

Parameters:
invocationContext - The invocation context
Throws:
java.lang.Exception

preDestroy

@PreDestroy
public void preDestroy(javax.interceptor.InvocationContext invocationContext)
                throws java.lang.Exception
Gets the underlying target and calls the pre-destroy method

Parameters:
invocationContext - The invocation context
Throws:
java.lang.Exception

getBean

protected EnterpriseBean<java.lang.Object> getBean()


Copyright © 2011. All Rights Reserved.