| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Superclass for all EJBs. Package-visible: not intended for direct subclassing. Provides a logger and a standard way of loading a BeanFactory. Subclasses act as a facade, with the business logic deferred to beans in the BeanFactory.
Default is to use an XmlApplicationContextBeanFactoryLoader, which will initialize an XmlApplicationContext from the classpath (based on a JNDI name specified). For a lighter weight implementation when ApplicationContext usage is not required, setBeanFactoryLoader() may be called (before your EJB's ejbCreate() method is invoked, for example, in setSessionContext()) with a value of XmlBeanFactoryLoader, which will load an XML bean factory from the classpath. Alternately, setBeanFactoryLoader() may be called with a completely custom implementation of the BeanFactoryLoader.
Note that we cannot use final for our implementation of EJB lifecycle methods, as this violates the EJB specification.
| Field Summary | |
final static String | BEAN_FACTORY_PATH_ENVIRONMENT_KEY |
| Method Summary | |
void | ejbRemove()Useful EJB lifecycle method. |
(package private) void | loadBeanFactory()Load a Spring BeanFactory namespace. |
void | setBeanFactoryLocator(BeanFactoryLocator beanFactoryLocator)Can be invoked before loadBeanFactory. |
void | setBeanFactoryLocatorKey(String factoryKey)Can be invoked before loadBeanFactory. |
(package private) void | unloadBeanFactory()Unload the Spring BeanFactory instance. |
| Field Detail |
public final static String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
| Method Detail |
public void ejbRemove()
void loadBeanFactory()
throws org.springframework.beans.factory.access.BootstrapException
public void setBeanFactoryLocator(BeanFactoryLocator beanFactoryLocator)
public void setBeanFactoryLocatorKey(String factoryKey)
void unloadBeanFactory()
throws org.springframework.beans.FatalBeanException
| Association Links |
to Class org.springframework.beans.factory.access.BeanFactoryLocator
to Class java.lang.String
to Class org.springframework.beans.factory.access.BeanFactoryReference
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||