User: schaefera
  Date: 01/05/16 12:15:28

  Modified:    src/main/org/jboss/mgt EJB.java Servlet.java
  Log:
  Added a boolean to the classes indicating that they are deployed. The
  most settings within Servlet, EJBs etc. will be taken from the deployement
  descriptors therefore this classes can be kept simple (Marc will like
  this).
  
  Revision  Changes    Path
  1.2       +12 -1     jboss/src/main/org/jboss/mgt/EJB.java
  
  Index: EJB.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/mgt/EJB.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EJB.java  2001/05/16 16:54:17     1.1
  +++ EJB.java  2001/05/16 19:15:28     1.2
  @@ -30,6 +30,7 @@
   
      private String mClass;
      private int mType;
  +   private boolean mDeployed;
   
      // -------------------------------------------------------------------------
      // Constructors
  @@ -37,10 +38,13 @@
   
      /**
       * @param pName Name of the Servlet
  +    * @param pType Type of the EJB
  +    * @param pDeployed True if the EJB is deployed now
       **/
      public EJB(
         String pName,
  -      int pType
  +      int pType,
  +      boolean pDeployed
      ) {
         super( pName );
         mType = pType;
  @@ -55,6 +59,13 @@
       **/
      public int getType() {
         return mType;
  +   }
  +
  +   /**
  +    * @return True if the EJB is deployed now
  +    **/
  +   public boolean isDeployed() {
  +      return mDeployed;
      }
   
      public String toString() {
  
  
  
  1.2       +11 -1     jboss/src/main/org/jboss/mgt/Servlet.java
  
  Index: Servlet.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/mgt/Servlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Servlet.java      2001/05/16 16:54:17     1.1
  +++ Servlet.java      2001/05/16 19:15:28     1.2
  @@ -22,6 +22,7 @@
   
      private String mClass;
      private Map mParameters;
  +   private boolean mLoaded;
   
      // -------------------------------------------------------------------------
      // Constructors
  @@ -31,11 +32,13 @@
       * @param pName Name of the Servlet
       * @param pClassName Name of the class the servlet is based on
       * @param pParameters Map of the Servlet Parameters
  +    * @param pLoaded True if the servlet is loaded now
       **/
      public Servlet(
         String pName,
         String pClassName,
  -      Map pParameters
  +      Map pParameters,
  +      boolean pLoaded
      ) {
         super( pName );
         mClass = pClassName;
  @@ -60,6 +63,13 @@
       **/
      public Map getParameters() {
         return mParameters;
  +   }
  +   
  +   /**
  +    * @return True if the servlet is loaded now
  +    **/
  +   public boolean isLoaded() {
  +      return mLoaded;
      }
   
      public String toString() {
  
  
  

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

Reply via email to