[Jboss-cvs] JBossAS SVN: r55149 - branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 3 20:47:00 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-08-03 20:46:59 -0400 (Thu, 03 Aug 2006)
New Revision: 55149
Modified:
branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java
Log:
Add getContextData(Class scope, Serializable key)
Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java 2006-08-04 00:32:41 UTC (rev 55148)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java 2006-08-04 00:46:59 UTC (rev 55149)
@@ -89,6 +89,20 @@
}
/**
+ * A helper method to access the context data map using a simple key
+ * space that is scoped by the scope class name.
+ *
+ * @param scope - the class whose FQCN will be used to scope the key
+ * @param key - the simple key
+ * @return the current value for the scope/key.
+ */
+ public Serializable getContextData(Class scope, Serializable key)
+ {
+ String fullKey = scope.getName() + "." + key;
+ Serializable currentData = contextData.put(fullKey, data);
+ return currentData;
+ }
+ /**
* A helper method to add data to the context data map using a simple key
* space that is scoped by the scope class name.
*
More information about the jboss-cvs-commits
mailing list