it.openutils.spring.rmibernate.client
Class HibernateRmiProxyFactoryBean

java.lang.Object
  extended by org.springframework.remoting.support.RemoteAccessor
      extended by org.springframework.remoting.support.UrlBasedRemoteAccessor
          extended by org.springframework.remoting.support.RemoteInvocationBasedAccessor
              extended by org.springframework.remoting.rmi.RmiClientInterceptor
                  extended by org.springframework.remoting.rmi.RmiProxyFactoryBean
                      extended by it.openutils.spring.rmibernate.client.HibernateRmiProxyFactoryBean
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class HibernateRmiProxyFactoryBean
extends org.springframework.remoting.rmi.RmiProxyFactoryBean

ProxyFactoryBean for automatic injection of remote lazy loading proxies

Version:
$Id: HibernateRmiProxyFactoryBean.java 716 2008-03-03 14:35:57Z fcarone $
Author:
mmolaschi

Field Summary
static java.lang.ThreadLocal<HibernateLazyService> hibernateLazyServiceTL
          Store the hibernate lazy service to be used by remote lazy loading
 
Fields inherited from class org.springframework.remoting.support.RemoteAccessor
logger
 
Constructor Summary
HibernateRmiProxyFactoryBean()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
          
 void setHibernateLazyService(HibernateLazyService hibernateLazyService)
          Sets the hibernateLazyService.
 
Methods inherited from class org.springframework.remoting.rmi.RmiProxyFactoryBean
afterPropertiesSet, getObject, getObjectType, isSingleton, setBeanClassLoader
 
Methods inherited from class org.springframework.remoting.rmi.RmiClientInterceptor
doInvoke, doInvoke, getStub, isConnectFailure, lookupStub, prepare, refreshAndRetry, setCacheStub, setLookupStubOnStartup, setRefreshStubOnConnectFailure, setRegistryClientSocketFactory
 
Methods inherited from class org.springframework.remoting.support.RemoteInvocationBasedAccessor
createRemoteInvocation, getRemoteInvocationFactory, recreateRemoteInvocationResult, setRemoteInvocationFactory
 
Methods inherited from class org.springframework.remoting.support.UrlBasedRemoteAccessor
getServiceUrl, setServiceUrl
 
Methods inherited from class org.springframework.remoting.support.RemoteAccessor
getServiceInterface, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hibernateLazyServiceTL

public static java.lang.ThreadLocal<HibernateLazyService> hibernateLazyServiceTL
Store the hibernate lazy service to be used by remote lazy loading

Constructor Detail

HibernateRmiProxyFactoryBean

public HibernateRmiProxyFactoryBean()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable

Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Overrides:
invoke in class org.springframework.remoting.rmi.RmiClientInterceptor
Throws:
java.lang.Throwable

setHibernateLazyService

public void setHibernateLazyService(HibernateLazyService hibernateLazyService)
Sets the hibernateLazyService.

Parameters:
hibernateLazyService - the hibernateLazyService to set


Copyright © 2008 Openmind. All Rights Reserved.