User: reverbel
  Date: 02/03/10 17:26:54

  Modified:    src/main/org/jboss/ejb Container.java
  Log:
  Added methods getCodebase/setCodebase, used by the iiop module.
  
  Revision  Changes    Path
  1.82      +30 -1     jboss/src/main/org/jboss/ejb/Container.java
  
  Index: Container.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/Container.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- Container.java    8 Mar 2002 20:59:28 -0000       1.81
  +++ Container.java    11 Mar 2002 01:26:54 -0000      1.82
  @@ -82,7 +82,7 @@
   * @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
   * @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
   * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  -* @version $Revision: 1.81 $
  +* @version $Revision: 1.82 $
   ** <p><b>Revisions:</b>
   *
   * <p><b>2001/07/26 bill burke:</b>
  @@ -98,6 +98,10 @@
   * <li> Moved to new Invocation layer and detached invokers.  
   *  <li> Use the method mappings for MarshalledInvocation.
   * </ul>
  +* <p><b>2002/03/10 francisco reverbel:</b>
  +* <ul>
  +* <li> Added getCodebase/setCodebase methods.
  +* </ul>
   */
   public abstract class Container implements MBeanRegistration, DynamicMBean
   {
  @@ -176,6 +180,9 @@
      /** Maps for MarshalledInvocation mapping */
      protected Map marshalledInvocationMapping = new HashMap();
      
  +   /** This Container's codebase, a sequence of URLs separated by spaces */
  +   protected String codebase = "";
  +   
      /** ObjectName of the JSR-77 EJB representation **/
      protected String mEJBObjectName;
      
  @@ -457,7 +464,29 @@
         return getBeanClass().newInstance();
      }
      
  +   /**
  +    * Sets the codebase of this container.
  +    * 
  +    * @param   codebase a possibly empty, but non null String with 
  +    *                   a sequence of URLs separated by spaces
  +    */
  +   public void setCodebase(String codebase) 
  +   { 
  +      if (codebase != null) 
  +         this.codebase = codebase;
  +   }
   
  +   /**
  +    * Gets the codebase of this container.
  +    * 
  +    * @return    this container's codebase String, a sequence of URLs 
  +    *            separated by spaces 
  +    */
  +   public String getCodebase() 
  +   { 
  +      return codebase; 
  +   }
  + 
      public ObjectName getJmxName()
      {
         String jndiName = getBeanMetaData().getJndiName(); 
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to