[jboss-cvs] jboss-seam/src/main/org/jboss/seam/ejb ...

Gavin King gavin.king at jboss.com
Wed Jul 26 19:33:39 EDT 2006


  User: gavin   
  Date: 06/07/26 19:33:39

  Modified:    src/main/org/jboss/seam/ejb  SeamInterceptor.java
  Log:
  more lifecycle events
  
  Revision  Changes    Path
  1.40      +15 -1     jboss-seam/src/main/org/jboss/seam/ejb/SeamInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/ejb/SeamInterceptor.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -b -r1.39 -r1.40
  --- SeamInterceptor.java	26 Jul 2006 23:22:37 -0000	1.39
  +++ SeamInterceptor.java	26 Jul 2006 23:33:39 -0000	1.40
  @@ -10,6 +10,8 @@
   
   import javax.annotation.PostConstruct;
   import javax.annotation.PreDestroy;
  +import javax.ejb.PostActivate;
  +import javax.ejb.PrePassivate;
   import javax.interceptor.AroundInvoke;
   import javax.interceptor.InvocationContext;
   
  @@ -28,7 +30,7 @@
    * for a session bean component
    * 
    * @author Gavin King
  - * @version $Revision: 1.39 $
  + * @version $Revision: 1.40 $
    */
   public class SeamInterceptor implements Serializable
   {
  @@ -73,6 +75,18 @@
         invoke(invocation, EventType.PRE_DESTORY);
      }
      
  +   @PrePassivate
  +   public void prePassivate(InvocationContext invocation) throws Exception
  +   {
  +      invoke(invocation, EventType.PRE_PASSIVATE);
  +   }
  +   
  +   @PostActivate
  +   public void postActivate(InvocationContext invocation) throws Exception
  +   {
  +      invoke(invocation, EventType.POST_ACTIVATE);
  +   }
  +   
      @AroundInvoke
      public Object aroundInvoke(InvocationContext invocation) throws Exception
      {
  
  
  



More information about the jboss-cvs-commits mailing list