[jboss-cvs] JBossAS SVN: r98375 - projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/spi/status.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 22 12:06:41 EST 2009
Author: jaikiran
Date: 2009-12-22 12:06:41 -0500 (Tue, 22 Dec 2009)
New Revision: 98375
Removed:
projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/spi/status/ProgressEvent.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/spi/status/ProgressEvent.java
Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/spi/status/ProgressEvent.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/spi/status/ProgressEvent.java 2009-12-22 17:06:34 UTC (rev 98374)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-jad-api/src/main/javax/enterprise/deploy/spi/status/ProgressEvent.java 2009-12-22 17:06:41 UTC (rev 98375)
@@ -1,150 +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.spi.status;
-
-import java.util.EventObject;
-import java.io.ObjectStreamField;
-import java.io.ObjectOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-
-import javax.enterprise.deploy.spi.TargetModuleID;
-
-import org.jboss.util.id.SerialVersion;
-
-/**
- * An event describing the progress of a deployment
- */
-public class ProgressEvent extends EventObject
-{
- /** @since 4.0.2 */
- static final long serialVersionUID;
-
- // Constants -----------------------------------------------------
- /**
- * These field names match the j2ee 1.4.1 ri version names
- */
- private static final ObjectStreamField[] serialPersistentFields;
- private static final int STATUS_IDX = 0;
- private static final int MODULE_ID_IDX = 1;
-
- static
- {
- if (SerialVersion.version == SerialVersion.LEGACY)
- {
- serialVersionUID = 3097551795061550569L;
- serialPersistentFields = new ObjectStreamField[] {
- /** @serialField statuscode DeploymentStatus current deployment status */
- new ObjectStreamField("status", DeploymentStatus.class),
- /** @serialField targetModuleID TargetModuleID id of the event target */
- new ObjectStreamField("moduleID", TargetModuleID.class)
- };
- }
- else
- {
- // j2ee 1.4.1 RI values
- serialVersionUID = 7815118532096485937L;
- serialPersistentFields = new ObjectStreamField[] {
- /** @serialField statuscode DeploymentStatus current deployment status */
- new ObjectStreamField("statuscode", DeploymentStatus.class),
- /** @serialField targetModuleID TargetModuleID id of the event target */
- new ObjectStreamField("targetModuleID", TargetModuleID.class)
- };
- }
- }
-
- // Attributes ----------------------------------------------------
-
- /** The deployment status */
- private DeploymentStatus status;
- /** The module id */
- private TargetModuleID moduleID;
-
- // Static --------------------------------------------------------
-
- // Constructors --------------------------------------------------
-
- /**
- * Create a new progress event
- *
- * @param source the source
- * @param status the deployment status
- * @param moduleID the module id
- */
- public ProgressEvent(Object source, TargetModuleID moduleID, DeploymentStatus status)
- {
- super(source);
- this.status = status;
- this.moduleID = moduleID;
- }
-
- // Public --------------------------------------------------------
-
- /**
- * Get the target module id
- *
- * @return the module id
- */
- public TargetModuleID getTargetModuleID()
- {
- return moduleID;
- }
-
- /**
- * Get the deployment status
- *
- * @return the deployment status
- */
- public DeploymentStatus getDeploymentStatus()
- {
- return status;
- }
-
- // Package protected ---------------------------------------------
-
- // Protected -----------------------------------------------------
-
- // Private -------------------------------------------------------
- private void readObject(ObjectInputStream ois)
- throws ClassNotFoundException, IOException
- {
- ObjectInputStream.GetField fields = ois.readFields();
- String name = serialPersistentFields[STATUS_IDX].getName();
- this.status = (DeploymentStatus) fields.get(name, null);
- name = serialPersistentFields[MODULE_ID_IDX].getName();
- this.moduleID = (TargetModuleID) fields.get(name, null);
- }
-
- private void writeObject(ObjectOutputStream oos)
- throws IOException
- {
- // Write j2ee 1.4.1 RI field names
- ObjectOutputStream.PutField fields = oos.putFields();
- String name = serialPersistentFields[STATUS_IDX].getName();
- fields.put(name, status);
- name = serialPersistentFields[MODULE_ID_IDX].getName();
- fields.put(name, moduleID);
- oos.writeFields();
- }
-
- // Inner classes -------------------------------------------------
-}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list