it.amattioli.applicate.context.hibernate
Class LongRunningContext

Show UML class diagram
java.lang.Object
  extended by it.amattioli.applicate.context.hibernate.LongRunningContext
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor
Direct Known Subclasses:
TransactionalCommandContext, TransactionalCommandContext

public class LongRunningContext
extends Object
implements net.sf.cglib.proxy.MethodInterceptor


Constructor Summary
LongRunningContext(Object decorated)
           
LongRunningContext(Object decorated, it.amattioli.dominate.sessions.SessionManager sessionMgr)
           
 
Method Summary
protected  void afterMethod(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
protected  void beforeMethod(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
protected  Object getDecorated()
           
 it.amattioli.dominate.sessions.SessionManager getSessionManager()
           
 Object intercept(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
static
<T> T
newLongRunningService(T service)
           
static
<T> T
newLongRunningService(T service, it.amattioli.dominate.sessions.SessionManager sessionMgr)
           
protected  Object perform(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
protected static void setDependenciesContextOn(Object original, Object enhanced)
           
static
<T> T
withCurrentSessionManager(T service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongRunningContext

public LongRunningContext(Object decorated,
                          it.amattioli.dominate.sessions.SessionManager sessionMgr)

LongRunningContext

public LongRunningContext(Object decorated)
Method Detail

newLongRunningService

public static <T> T newLongRunningService(T service,
                                          it.amattioli.dominate.sessions.SessionManager sessionMgr)

newLongRunningService

public static <T> T newLongRunningService(T service)

withCurrentSessionManager

public static <T> T withCurrentSessionManager(T service)

setDependenciesContextOn

protected static void setDependenciesContextOn(Object original,
                                               Object enhanced)

getDecorated

protected Object getDecorated()

getSessionManager

public it.amattioli.dominate.sessions.SessionManager getSessionManager()

beforeMethod

protected void beforeMethod(Object object,
                            Method method,
                            Object[] args,
                            net.sf.cglib.proxy.MethodProxy methodProxy)

afterMethod

protected void afterMethod(Object object,
                           Method method,
                           Object[] args,
                           net.sf.cglib.proxy.MethodProxy methodProxy)

perform

protected Object perform(Object object,
                         Method method,
                         Object[] args,
                         net.sf.cglib.proxy.MethodProxy methodProxy)
                  throws Throwable
Throws:
Throwable

intercept

public final Object intercept(Object object,
                              Method method,
                              Object[] args,
                              net.sf.cglib.proxy.MethodProxy methodProxy)
                       throws Throwable
Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor
Throws:
Throwable


Copyright © 2011. All Rights Reserved.