org.objectweb.jac.aspects.hibernate
Class BeginPersistentSessionWrapper

java.lang.Object
  extended byorg.objectweb.jac.core.Wrapper
      extended byorg.objectweb.jac.aspects.hibernate.BeginPersistentSessionWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable

public class BeginPersistentSessionWrapper
extends Wrapper

This wrapper delimits the begining of a persistent session.

Version:
1.0
Author:
Lionel Seinturier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
BeginPersistentSessionWrapper(AspectComponent ac)
           
 
Method Summary
 Object construct(ConstructorInvocation invocation)
           
 Object invoke(MethodInvocation invocation)
          Wrapping method around pointcuts where a persistent session begins.
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeginPersistentSessionWrapper

public BeginPersistentSessionWrapper(AspectComponent ac)
Method Detail

invoke

public Object invoke(MethodInvocation invocation)
Wrapping method around pointcuts where a persistent session begins.

Specified by:
invoke in interface MethodInterceptor
Overrides:
invoke in class Wrapper

construct

public Object construct(ConstructorInvocation invocation)
                 throws Throwable
Specified by:
construct in interface ConstructorInterceptor
Overrides:
construct in class Wrapper
Throws:
Throwable