Deprecated EJB 2.x implementation class hierarchy in "ejb.support" package

This commit is contained in:
Juergen Hoeller
2012-11-25 21:06:25 +01:00
parent 3d5bfc35b6
commit 4dc336920c
8 changed files with 16 additions and 2 deletions

View File

@@ -51,7 +51,9 @@ import org.springframework.util.WeakReferenceMonitor;
* @author Juergen Hoeller
* @see org.springframework.context.access.ContextJndiBeanFactoryLocator
* @see org.springframework.context.access.ContextSingletonBeanFactoryLocator
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public abstract class AbstractEnterpriseBean implements EnterpriseBean {
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY = "java:comp/env/ejb/BeanFactoryPath";

View File

@@ -23,7 +23,9 @@ import javax.jms.MessageListener;
* to implement the JMS <code>javax.jms.MessageListener</code> interface.
*
* @author Rod Johnson
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public abstract class AbstractJmsMessageDrivenBean extends AbstractMessageDrivenBean implements MessageListener {
// Empty: The purpose of this class is to ensure

View File

@@ -40,7 +40,9 @@ import org.apache.commons.logging.LogFactory;
* <code>ejbCreate()</code> methods.
*
* @author Rod Johnson
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public abstract class AbstractMessageDrivenBean extends AbstractEnterpriseBean
implements MessageDrivenBean {

View File

@@ -28,7 +28,9 @@ import javax.ejb.SessionContext;
*
* @author Rod Johnson
* @author Juergen Hoeller
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public abstract class AbstractSessionBean extends AbstractEnterpriseBean implements SmartSessionBean {
/** The SessionContext passed to this EJB */

View File

@@ -41,7 +41,9 @@ import org.springframework.beans.FatalBeanException;
* @author Rod Johnson
* @author Colin Sampaleanu
* @see org.springframework.context.access.ContextJndiBeanFactoryLocator
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public abstract class AbstractStatefulSessionBean extends AbstractSessionBean {
/**

View File

@@ -45,7 +45,9 @@ import org.apache.commons.logging.LogFactory;
* a common cause of EJB deployment failure.
*
* @author Rod Johnson
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public abstract class AbstractStatelessSessionBean extends AbstractSessionBean {
/** Logger available to subclasses */

View File

@@ -31,7 +31,9 @@ import javax.ejb.SessionContext;
* @since 1.2
* @see AbstractStatelessSessionBean
* @see AbstractStatefulSessionBean
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
*/
@Deprecated
public interface SmartSessionBean extends SessionBean {
/**

View File

@@ -3,14 +3,14 @@
*
* <p>Base classes to make implementing EJB 2.x beans simpler and less error-prone,
* as well as guaranteeing a Spring BeanFactory is available to such EJBs.
* This promotes good practice, with EJB services used for transaction
* This promotes good EJB practice, with EJB services used for transaction
* management, thread management, and (possibly) remoting, while
* business logic is implemented in easily testable POJOs.</p>
*
* <p>In this model, the EJB is a facade, with as many POJO helpers
* behind the BeanFactory as required.</p>
*
* <p>Note that the default behavior is to look for an EJB enviroment variable
* <p>Note that the default behavior is to look for an EJB environment variable
* with name <code>ejb/BeanFactoryPath</code> that specifies the
* location <i>on the classpath</i> of an XML bean factory definition
* file (such as <code>/com/mycom/mypackage/mybeans.xml</code>).