[jbossws-commits] JBossWS SVN: r3854 - branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Wed Jul 11 17:52:00 EDT 2007


Author: thomas.diesler at jboss.com
Date: 2007-07-11 17:51:59 -0400 (Wed, 11 Jul 2007)
New Revision: 3854

Added:
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/ContextPropertiesDeploymentAspect.java
Log:


Added: branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/ContextPropertiesDeploymentAspect.java
===================================================================
--- branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/ContextPropertiesDeploymentAspect.java	                        (rev 0)
+++ branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/ContextPropertiesDeploymentAspect.java	2007-07-11 21:51:59 UTC (rev 3854)
@@ -0,0 +1,60 @@
+/*
+ * 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 org.jboss.wsf.spi.deployment;
+
+import java.util.Iterator;
+import java.util.Map;
+
+
+/**
+ * Populate deployment context properties
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 19-May-2006
+ */
+public class ContextPropertiesDeploymentAspect extends DeploymentAspect
+{
+   // The configured service endpoint servlet
+   private Map<String,String> contextProperties;
+
+   public Map<String, String> getContextProperties()
+   {
+      return contextProperties;
+   }
+
+   public void setContextProperties(Map<String, String> contextProperties)
+   {
+      this.contextProperties = contextProperties;
+   }
+
+   @Override
+   public void create(Deployment dep)
+   {
+      Iterator<String> it = contextProperties.keySet().iterator();
+      while (it.hasNext())
+      {
+         String key = it.next();
+         String value = contextProperties.get(key);
+         dep.getContext().setProperty(key, value);
+      }
+   }
+}
\ No newline at end of file




More information about the jbossws-commits mailing list