[jbossws-commits] JBossWS SVN: r3860 - 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
Thu Jul 12 11:33:12 EDT 2007


Author: thomas.diesler at jboss.com
Date: 2007-07-12 11:33:12 -0400 (Thu, 12 Jul 2007)
New Revision: 3860

Added:
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectInstaller.java
Modified:
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
Log:
Use aspect installer

Modified: branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
===================================================================
--- branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java	2007-07-12 14:28:23 UTC (rev 3859)
+++ branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java	2007-07-12 15:33:12 UTC (rev 3860)
@@ -27,7 +27,11 @@
 import java.util.Set;
 import java.util.StringTokenizer;
 
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.spi.registry.KernelRegistry;
+import org.jboss.kernel.spi.registry.KernelRegistryEntry;
 import org.jboss.logging.Logger;
+import org.jboss.ws.integration.KernelLocator;
 
 /**
  * A deployment aspect that does nothing.
@@ -42,7 +46,7 @@
 {
    // provide logging
    protected final Logger log = Logger.getLogger(getClass());
-   
+
    private String provides;
    private String requires;
 
@@ -81,7 +85,7 @@
    public void stop(Deployment dep)
    {
    }
-   
+
    public Set<String> getProvidesAsSet()
    {
       Set<String> condset = new HashSet<String>();

Added: branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectInstaller.java
===================================================================
--- branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectInstaller.java	                        (rev 0)
+++ branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectInstaller.java	2007-07-12 15:33:12 UTC (rev 3860)
@@ -0,0 +1,58 @@
+/*
+ * 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;
+
+//$Id: AbstractDeployer.java 3146 2007-05-18 22:55:26Z thomas.diesler at jboss.com $
+
+import java.util.Set;
+
+/**
+ * A deployment aspect installer.
+ * 
+ * Use this installer with microkernel version 1.x
+ * 
+ * @author Thomas.Diesler at jboss.com
+ * @since 20-Apr-2007 
+ */
+public class DeploymentAspectInstaller
+{
+   private DeploymentAspectManager manager;
+   private Set<DeploymentAspect> aspects;
+
+   public void setManager(DeploymentAspectManager manager)
+   {
+      this.manager = manager;
+   }
+
+   public void setAspects(Set<DeploymentAspect> aspects)
+   {
+      this.aspects = aspects;
+   }
+
+   public void create()
+   {
+      for (DeploymentAspect aspect : aspects)
+      {
+         manager.addDeploymentAspect(aspect);
+      }
+   }
+}
\ No newline at end of file




More information about the jbossws-commits mailing list