it.amattioli.applicate.context.hibernate
Class ThreadLocalContext

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

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


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

Constructor Detail

ThreadLocalContext

public ThreadLocalContext(Object decorated)
Method Detail

newThreadLocalService

public static <T> T newThreadLocalService(T command)

getDecorated

protected Object getDecorated()

getSessionManager

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

beforeMethod

protected void beforeMethod()

afterMethod

protected void afterMethod()

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.