geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/geronimo/appclient ApplicationClient.java
Date Tue, 07 Oct 2003 19:16:31 GMT
ammulder    2003/10/07 12:16:31

  Modified:    modules/core/src/java/org/apache/geronimo/deployment/model/appclient
                        ApplicationClient.java
               modules/core/src/java/org/apache/geronimo/deployment/model/geronimo/appclient
                        ApplicationClient.java
  Log:
  Implement the new JNDI ref interfaces
  
  Revision  Changes    Path
  1.5       +20 -2     incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/appclient/ApplicationClient.java
  
  Index: ApplicationClient.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/appclient/ApplicationClient.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ApplicationClient.java	17 Sep 2003 01:47:15 -0000	1.4
  +++ ApplicationClient.java	7 Oct 2003 19:16:31 -0000	1.5
  @@ -63,13 +63,15 @@
   import org.apache.geronimo.deployment.model.j2ee.ResourceEnvRef;
   import org.apache.geronimo.deployment.model.j2ee.ResourceRef;
   import org.apache.geronimo.deployment.model.j2ee.ServiceRef;
  +import org.apache.geronimo.deployment.model.j2ee.JNDIEnvironmentRefs;
  +import org.apache.geronimo.deployment.model.j2ee.EJBLocalRef;
   
   /**
    * JavaBean for the application-client.xml tag application-client
    *
    * @version $Revision$ $Date$
    */
  -public class ApplicationClient extends Displayable {
  +public class ApplicationClient extends Displayable implements JNDIEnvironmentRefs {
       private String version;
       private EnvEntry[] envEntry;
       private EJBRef[] ejbRef;
  @@ -206,5 +208,21 @@
   
       public void setServiceRef(int i, ServiceRef serviceRef) {
           this.serviceRef[i] = serviceRef;
  +    }
  +
  +    public EJBLocalRef[] getEJBLocalRef() {
  +        return new EJBLocalRef[0];
  +    }
  +
  +    public EJBLocalRef getEJBLocalRef(int i) {
  +        return null;
  +    }
  +
  +    public void setEJBLocalRef(EJBLocalRef[] ejbLocalRef) {
  +        throw new UnsupportedOperationException("Application client does not support EJB
local references.");
  +    }
  +
  +    public void setEJBLocalRef(int i, EJBLocalRef ejbLocalRef) {
  +        throw new UnsupportedOperationException("Application client does not support EJB
local references.");
       }
   }
  
  
  
  1.4       +13 -1     incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/geronimo/appclient/ApplicationClient.java
  
  Index: ApplicationClient.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/model/geronimo/appclient/ApplicationClient.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ApplicationClient.java	17 Sep 2003 01:47:15 -0000	1.3
  +++ ApplicationClient.java	7 Oct 2003 19:16:31 -0000	1.4
  @@ -75,6 +75,18 @@
           return new EjbLocalRef[0];
       }
   
  +    public EjbLocalRef getGeronimoEJBLocalRef(int i) {
  +        return null;
  +    }
  +
  +    public void setGeronimoEJBLocalRef(int i, EjbLocalRef ejbRef) {
  +        throw new UnsupportedOperationException("Application client does not support EJB
local references.");
  +    }
  +
  +    public void setGeronimoEJBLocalRef(EjbLocalRef[] ejbRef) {
  +        throw new UnsupportedOperationException("Application client does not support EJB
local references.");
  +    }
  +
       public void setEJBRef(org.apache.geronimo.deployment.model.j2ee.EJBRef[] ejbRef) {
           assert (ejbRef instanceof EjbRef[]);
           super.setEJBRef(ejbRef);
  
  
  

Mime
View raw message