[jboss-cvs] JBossAS SVN: r98444 - projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 22 12:15:55 EST 2009


Author: jaikiran
Date: 2009-12-22 12:15:54 -0500 (Tue, 22 Dec 2009)
New Revision: 98444

Removed:
   projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/EJBContext.java
Log:
Autoversioning commit:  a non-deltaV client made a change to
/projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/EJBContext.java

Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/EJBContext.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/EJBContext.java	2009-12-22 17:15:47 UTC (rev 98443)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/EJBContext.java	2009-12-22 17:15:54 UTC (rev 98444)
@@ -1,170 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package javax.ejb;
-
-import java.security.Identity;
-import java.security.Principal;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.transaction.UserTransaction;
-
-/**
- * <P>The EJBContext interface provides an instance with access to the
- * container-provided runtime context of an enterprise Bean instance.</P>
- * <P>This interface is extended by the SessionContext and EntityContext
- * interface to provide additional methods specific to the enterprise
- * Bean type.</P>
- * @version $Revision$
- */
-public interface EJBContext
-{
-
-  /**
-   * Obtain the enterprise bean's remote home interface.
-   *
-   * @return The enterprise bean's remote home interface.
-   * @exception java.lang.IllegalStateException - if the enterprise bean does not have a remote home interface.
-   */
-  public EJBHome getEJBHome();
-
-  /**
-   * Obtain the enterprise bean's local home interface.
-   *
-   * @return The enterprise bean's local home interface.
-   * @exception java.lang.IllegalStateException - if the enterprise bean does not have a local home interface.
-   */
-  public EJBLocalHome getEJBLocalHome();
-
-  /**
-   * <B>Deprecated.</B> <I>Use the JNDI naming context java:comp/env to access enterprise bean's environment.</I>
-   *
-   * <P>Obtain the enterprise bean's environment properties.</P>
-   *
-   * <P><B>Note:</B> If the enterprise bean has no environment properties this method returns an empty
-   * java.util.Properties object. This method never returns null.</P>
-   *
-   * @return The environment properties for the enterprise bean.
-   */
-  public Properties getEnvironment();
-
-   /**
-    * <B>Deprecated.</B> <I>Use Principal getCallerPrincipal() instead.</I>
-    *
-    * <P>Obtain the java.security.Identity of the caller. This method is deprecated in EJB 1.1.
-    * The Container is allowed to return alway null from this method. The enterprise bean should use
-    * the getCallerPrincipal method instead.</P>
-    *
-    * @return The Identity object that identifies the caller.
-    */
-   public Identity getCallerIdentity();
-
-   /**
-    * Obtains the java.security.Principal of the caller.
-    *
-    * @return The Principal object that identifies the caller. This method never returns null.
-    */
-   public Principal getCallerPrincipal();
-
-   /**
-    * Returns the context data associated with this invocation or lifecycle callback. If there
-    * is no context data, an empty Map object will be returned. 
-    * @return Context data or empty map.
-    * @since 3.1
-    */
-   Map<String, Object> getContextData();
-   
-   /**
-    * <B>Deprecated.</B> <I>Use boolean isCallerInRole(String roleName) instead.</I>
-    *
-    * <P>Test if the caller has a given role.</P>
-    *
-    * <P>This method is deprecated in EJB 1.1. The enterprise bean should use the
-    * isCallerInRole(String roleName) method instead.</P>
-    *
-    * @param role - The java.security.Identity of the role to be tested.
-    * @return True if the caller has the specified role.
-    */
-   public boolean isCallerInRole(Identity role);
-
-   /**
-    * Tests if the caller has a given role.
-    *
-    * @param roleName - The name of the security role. The role must be one of the security roles that
-    * is defined in the deployment descriptor.
-    * @return True if the caller has the specified role.
-    */
-   public boolean isCallerInRole(String roleName);
-
-  /**
-   * Obtain the transaction demarcation interface. Only enterprise beans with bean-managed transactions
-   * are allowed to to use the UserTransaction interface. As entity beans must always use container-managed
-   * transactions, only session beans with bean-managed transactions are allowed to invoke this method.
-   *
-   * @return The UserTransaction interface that the enterprise bean instance can use for transaction demarcation.
-   * @exception java.lang.IllegalStateException - The Container throws the exception if the instance is not
-   * allowed to use the UserTransaction interface (i.e. the instance is of a bean with container-managed
-   * transactions).
-   */
-  public UserTransaction getUserTransaction() throws IllegalStateException;
-
-  /**
-   * Mark the current transaction for rollback. The transaction will become permanently marked for rollback.
-   * A transaction marked for rollback can never commit. Only enterprise beans with container-managed
-   * transactions are allowed to use this method.
-   *
-   * @exception java.lang.IllegalStateException - The Container throws the exception if the instance is not
-   * allowed to use this method (i.e. the instance is of a bean with bean-managed transactions).
-   */
-  public void setRollbackOnly() throws IllegalStateException;
-
-   /**
-    * Test if the transaction has been marked for rollback only. An enterprise bean instance can use
-    * this operation, for example, to test after an exception has been caught, whether it is fruitless
-    * to continue computation on behalf of the current transaction. Only enterprise beans with
-    * container-managed transactions are allowed to use this method.</P>
-    *
-    * @return True if the current transaction is marked for rollback, false otherwise.
-    * @exception java.lang.IllegalStateException - The Container throws the exception if the instance
-    * is not allowed to use this method (i.e. the instance is of a bean with bean-managed transactions).
-    */
-   public boolean getRollbackOnly() throws IllegalStateException;
-   
-   /**
-    * Get access to the EJB Timer Service.
-    *
-    * @exception IllegalStateException The Container throws the exception
-    *    if the instance is not allowed to use this method (e.g. if the bean
-    *    is a stateful session bean)
-    */
-   public TimerService getTimerService() throws IllegalStateException;
-
-   /**
-    * Lookup a resource within the component's private naming context. 
-    *
-    * @param name - Name of the entry (relative to java:comp/env).
-    * @throws IllegalArgumentException - The Container throws the exception if
-    * the given name does not match an entry within the component's environment.
-    */
-   public Object lookup(String name) throws IllegalArgumentException;
-   
-}




More information about the jboss-cvs-commits mailing list