[jboss-cvs] JBossAS SVN: r98352 - 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:03:19 EST 2009
Author: jaikiran
Date: 2009-12-22 12:03:19 -0500 (Tue, 22 Dec 2009)
New Revision: 98352
Removed:
projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/CommandType.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/CommandType.java
Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/CommandType.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/CommandType.java 2009-12-22 17:03:12 UTC (rev 98351)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/shared/CommandType.java 2009-12-22 17:03:19 UTC (rev 98352)
@@ -1,148 +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 commands.
- *
- * @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
- * @version $Revision$
- */
-public class CommandType
-{
- // Constants -----------------------------------------------------
-
- /** The DISTRIBUTE integer value */
- private static final int DISTRIBUTE_INT = 0;
- /** The START integer value */
- private static final int START_INT = 1;
- /** The STOP integer value */
- private static final int STOP_INT = 2;
- /** The UNDEPLOY integer value */
- private static final int UNDEPLOY_INT = 3;
- /** The REDEPLOY integer value */
- private static final int REDEPLOY_INT = 4;
-
- /** The command type for an DISTRIBUTE */
- public static final CommandType DISTRIBUTE = new CommandType(DISTRIBUTE_INT);
- /** The command type for an START */
- public static final CommandType START = new CommandType(START_INT);
- /** The command type for an STOP */
- public static final CommandType STOP = new CommandType(STOP_INT);
- /** The command type for an UNDEPLOY */
- public static final CommandType UNDEPLOY = new CommandType(UNDEPLOY_INT);
- /** The module type for an REDEPLOY */
- public static final CommandType REDEPLOY = new CommandType(REDEPLOY_INT);
-
- /** The command types */
- private static final CommandType[] commandTypes = new CommandType[]
- {
- DISTRIBUTE, START, STOP, UNDEPLOY, REDEPLOY
- };
-
- /** The command descriptions */
- private static final String[] commandDescs = new String[]
- {
- "Distribute",
- "Start",
- "Stop",
- "Undeploy",
- "Redeploy"
- };
-
- // Attributes ----------------------------------------------------
-
- /** The value */
- private int value;
-
- /**
- * Create a new CommandType
- *
- * @param value the value
- */
- protected CommandType(int value)
- {
- this.value = value;
- }
-
- // Public --------------------------------------------------------
-
- /**
- * Get the value
- *
- * @return the value
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * Get the string table for class command type
- *
- * [todo] check this?
- * @return the string table
- */
- protected String[] getStringTable()
- {
- return commandDescs;
- }
-
- /**
- * Get the enumerated values for module type
- *
- * @return the string table
- */
- protected CommandType[] getEnumValueTable()
- {
- return commandTypes;
- }
-
- /**
- * Get the command type for an integer
- *
- * @param type the type
- * @return the command type
- */
- public static CommandType getCommandType(int type)
- {
- if (type >= commandTypes.length)
- return null;
- return commandTypes[type];
- }
-
- public String toString()
- {
- return commandDescs[value];
- }
-
- /**
- * Return the offset of the first element
- *
- * @return the offset
- */
- protected int getOffset()
- {
- return DISTRIBUTE_INT;
- }
-
-}
More information about the jboss-cvs-commits
mailing list