com.interface21.ejb.access
Class LocalStatelessSessionProxyFactoryBean

java.lang.Object
  |
  +--com.interface21.jndi.AbstractJndiLocator
        |
        +--com.interface21.ejb.access.AbstractSlsbInvokerInterceptor
              |
              +--com.interface21.ejb.access.LocalSlsbInvokerInterceptor
                    |
                    +--com.interface21.ejb.access.LocalStatelessSessionProxyFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean, org.aopalliance.Interceptor, Lifecycle, org.aopalliance.MethodInterceptor

public class LocalStatelessSessionProxyFactoryBean
extends LocalSlsbInvokerInterceptor
implements FactoryBean, Lifecycle

Convenient factory for local or remote SLSB proxies. If you want control over interceptor chaining, use an AOP ProxyFactoryBean rather than rely on this class.

Since:
09-May-2003
Version:
$Id: LocalStatelessSessionProxyFactoryBean.java,v 1.3 2003/06/13 13:40:37 jhoeller Exp $
Author:
Rod Johnson

Fields inherited from class com.interface21.ejb.access.AbstractSlsbInvokerInterceptor
CREATE_METHOD
 
Fields inherited from class com.interface21.jndi.AbstractJndiLocator
CONTAINER_PREFIX, logger
 
Constructor Summary
LocalStatelessSessionProxyFactoryBean()
           
 
Method Summary
 java.lang.Class getBusinessInterface()
           
 java.lang.Object getObject()
          Return an instance (possibly shared or independent) of the object managed by this factory.
 PropertyValues getPropertyValues()
          Property values to pass to new bean instances created by this factory.
 boolean isSingleton()
          Is the bean managed by this factory a singleton or a prototype?
 void setBeanFactory(BeanFactory bf)
          Lifecycle callback beans used in a BeanFactory can implement to receive callbacks exposing the factory itself.
 void setBusinessInterface(java.lang.Class class1)
          Set the business interface of the EJB we're proxying
 
Methods inherited from class com.interface21.ejb.access.LocalSlsbInvokerInterceptor
invoke, newSessionBeanInstance
 
Methods inherited from class com.interface21.ejb.access.AbstractSlsbInvokerInterceptor
getHomeBeanWrapper, located
 
Methods inherited from class com.interface21.jndi.AbstractJndiLocator
afterPropertiesSet, getJndiName, getJndiTemplate, isInContainer, setInContainer, setJndiName, setJndiTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.interface21.beans.factory.InitializingBean
afterPropertiesSet
 

Constructor Detail

LocalStatelessSessionProxyFactoryBean

public LocalStatelessSessionProxyFactoryBean()
Method Detail

getBusinessInterface

public java.lang.Class getBusinessInterface()
Returns:
the business interface of the EJB. Note that this will normally be the superinterface of the EJBLocal interface. Using a business methods interface is a best practice when implementing EJBs.

setBusinessInterface

public void setBusinessInterface(java.lang.Class class1)
Set the business interface of the EJB we're proxying
Parameters:
class1 - set the business interface of the EJB

setBeanFactory

public void setBeanFactory(BeanFactory bf)
                    throws java.lang.Exception
Description copied from interface: Lifecycle
Lifecycle callback beans used in a BeanFactory can implement to receive callbacks exposing the factory itself. This enables them to obtain other beans from the factory.
If the bean also implements InitializingBean, Lifecycle methods will be invoked after the afterPropertiesSet method.
Specified by:
setBeanFactory in interface Lifecycle
See Also:
InitializingBean.afterPropertiesSet()

getObject

public java.lang.Object getObject()
                           throws BeansException
Description copied from interface: FactoryBean
Return an instance (possibly shared or independent) of the object managed by this factory. As with a BeanFactory, this allows support for both the Singleton and Prototype design pattern.
Specified by:
getObject in interface FactoryBean
See Also:
FactoryBean.getObject()

isSingleton

public boolean isSingleton()
Description copied from interface: FactoryBean
Is the bean managed by this factory a singleton or a prototype? That is, will getBean() always return the same object?
The singleton status of a FactoryBean will generally be provided by the owning BeanFactory.
Specified by:
isSingleton in interface FactoryBean
See Also:
FactoryBean.isSingleton()

getPropertyValues

public PropertyValues getPropertyValues()
Description copied from interface: FactoryBean
Property values to pass to new bean instances created by this factory. Mapped directly onto the bean instance using reflection. This occurs after any configuration of the instance performed by the factory itself, and is an optional step within the control of the owning BeanFactory.
Specified by:
getPropertyValues in interface FactoryBean
See Also:
FactoryBean.getPropertyValues()


Rod Johnson and Spring contributors 2001-2003.