[jboss-cvs] JBossAS SVN: r98348 - projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 22 12:02:43 EST 2009


Author: jaikiran
Date: 2009-12-22 12:02:43 -0500 (Tue, 22 Dec 2009)
New Revision: 98348

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

Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/ActionType.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/ActionType.java	2009-12-22 17:02:29 UTC (rev 98347)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/ActionType.java	2009-12-22 17:02:43 UTC (rev 98348)
@@ -1,138 +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.enterprise.deploy.shared;
-
-/**
- * An enumeration of deployment status action types.
- *
- * @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
- * @version $Revision$
- */
-public class ActionType
-{
-   // Constants -----------------------------------------------------
-
-   /** The Execute integer value */
-   private static final int EXECUTE_INT = 0;
-   /** The Cancel integer value */
-   private static final int CANCEL_INT = 1;
-   /** The Stop integer value */
-   private static final int STOP_INT = 2;
-   
-   /** The action type for EXECUTE */
-   public static final ActionType EXECUTE = new ActionType(EXECUTE_INT);
-   /** The action type for CANCEL  */
-   public static final ActionType CANCEL = new ActionType(CANCEL_INT);
-   /** The action type for STOP */
-   public static final ActionType STOP = new ActionType(STOP_INT);
-
-   /** The action types */
-   private static final ActionType[] actionTypes = new ActionType[]
-   {
-      EXECUTE, CANCEL, STOP                                                                 
-   };
-
-   /** The action descriptions */
-   private static final String[] actionDescs = new String[]
-   {
-      "Execute",
-      "Cancel",
-      "Stop"
-   };
-   
-   // Attributes ----------------------------------------------------
-   
-   /** The value */
-   private int value;
-   
-   // Constructors --------------------------------------------------
-   
-   /**
-    * Create a new ActionType
-    *
-    * @param value the value
-    */
-   protected ActionType(int value)
-   {
-      this.value = value;
-   }
-   
-   /**
-    * Get the value
-    *
-    * @return the value
-    */
-   public int getValue()
-   {
-      return value;
-   }
-   
-   /**
-    * Get the string table for class action type
-    *
-    * [todo] check this?
-    * @return the string table
-    */
-   protected String[] getStringTable()
-   {
-      return actionDescs;
-   }
-   
-   /**
-    * Get the enumerated values for module type
-    *
-    * @return the string table
-    */
-   protected ActionType[] getEnumValueTable()
-   {
-      return actionTypes;
-   }
-
-   /**
-    * Get the action type for an integer
-    *
-    * @param type the type
-    * @return the action type
-    */
-   public static ActionType getActionType(int type)
-   {
-      if (type >= actionTypes.length)
-         return null;
-      return actionTypes[type];
-   }
-
-   public String toString()
-   {
-      return actionDescs[value];
-   }
-
-   /**
-    * Return the offset of the first element
-    *
-    * @return the offset
-    */
-   protected int getOffset()
-   {
-      return EXECUTE_INT;
-   }
-
-}




More information about the jboss-cvs-commits mailing list