com.interface21.ejb.access
Class SimpleRemoteStatelessSessionProxyFactoryBean
java.lang.Object
|
+--com.interface21.jndi.AbstractJndiLocator
|
+--com.interface21.ejb.access.AbstractSlsbInvokerInterceptor
|
+--com.interface21.ejb.access.AbstractRemoteSlsbInvokerInterceptor
|
+--com.interface21.ejb.access.SimpleRemoteSlsbInvokerInterceptor
|
+--com.interface21.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean
- All Implemented Interfaces:
- FactoryBean, InitializingBean, org.aopalliance.Interceptor, Lifecycle, org.aopalliance.MethodInterceptor
- public class SimpleRemoteStatelessSessionProxyFactoryBean
- extends SimpleRemoteSlsbInvokerInterceptor
- 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: SimpleRemoteStatelessSessionProxyFactoryBean.java,v 1.3 2003/06/13 13:40:37 jhoeller Exp $
- Author:
- Rod Johnson
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRemoteStatelessSessionProxyFactoryBean
public SimpleRemoteStatelessSessionProxyFactoryBean()
getBusinessInterface
public java.lang.Class getBusinessInterface()
- Returns:
- the business interface of the EJB. Note that this
will normally be the superinterface of the EJB remote component 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.