[jboss-cvs] system2/src/main/org/jboss/deployers/spi ...
Scott Stark
scott.stark at jboss.com
Wed Jul 12 20:25:39 EDT 2006
User: starksm
Date: 06/07/12 20:25:39
Modified: src/main/org/jboss/deployers/spi DeploymentContext.java
Log:
Add support for serialization of VDF elements
Revision Changes Path
1.6 +19 -3 system2/src/main/org/jboss/deployers/spi/DeploymentContext.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DeploymentContext.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/main/org/jboss/deployers/spi/DeploymentContext.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- DeploymentContext.java 10 Jul 2006 16:45:39 -0000 1.5
+++ DeploymentContext.java 13 Jul 2006 00:25:39 -0000 1.6
@@ -21,6 +21,7 @@
*/
package org.jboss.deployers.spi;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -37,10 +38,13 @@
*
* @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
* @author Scott.Stark at jboss.org
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class DeploymentContext extends JBossObject
+ implements Serializable
{
+ private static final long serialVersionUID = 1;
+
// Protected Data ------------------------------------------------
protected VirtualFile file;
protected DeploymentContext parent;
@@ -48,11 +52,15 @@
/** The list of VFS paths that form the classpath */
protected List<String> classpath = new ArrayList<String>();
protected List<DeploymentContext> subDeployments = new ArrayList<DeploymentContext>();
- protected ConcurrentHashMap contextData = new ConcurrentHashMap();
+ protected ConcurrentHashMap<Serializable, Serializable>
+ contextData = new ConcurrentHashMap<Serializable, Serializable>();
/** The current state of the deployment */
protected DeploymentState state = DeploymentState.CONSTRUCTED;
// Constructors --------------------------------------------------
+ public DeploymentContext()
+ {
+ }
public DeploymentContext(VirtualFile file, DeploymentContext parent)
{
this.file = file;
@@ -65,8 +73,12 @@
{
return file;
}
+ public void setFile(VirtualFile file)
+ {
+ this.file = file;
+ }
- public Map getContextData()
+ public Map<Serializable, Serializable> getContextData()
{
return contextData;
}
@@ -78,6 +90,10 @@
{
return parent;
}
+ public void setParentContext(DeploymentContext parent)
+ {
+ this.parent = parent;
+ }
/**
* @param state The state to set.
More information about the jboss-cvs-commits
mailing list