[jbossws-commits] JBossWS SVN: r6239 - in spi/branches/hbraun/src/main/java/org/jboss/wsf/spi: deployment and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Apr 4 15:06:38 EDT 2008


Author: heiko.braun at jboss.com
Date: 2008-04-04 15:06:38 -0400 (Fri, 04 Apr 2008)
New Revision: 6239

Added:
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntimeLocator.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentLifecycle.java
Modified:
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntime.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectManager.java
Log:
Added DeploymentLifecycle and WSFRuntimeLocator

Modified: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntime.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntime.java	2008-04-04 12:51:49 UTC (rev 6238)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntime.java	2008-04-04 19:06:38 UTC (rev 6239)
@@ -26,7 +26,7 @@
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
  */
-public interface WSFRuntime
+public interface WSFRuntime 
 {
    void create(Deployment deployment);
    void start(Deployment deployment);

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntimeLocator.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntimeLocator.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntimeLocator.java	2008-04-04 19:06:38 UTC (rev 6239)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface WSFRuntimeLocator
+{
+   /**
+    * Locate a web service runtime by logical name
+    * @param runtimeName
+    * @return
+    */
+   WSFRuntime locateRuntime(String runtimeName);
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/WSFRuntimeLocator.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java	2008-04-04 12:51:49 UTC (rev 6238)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java	2008-04-04 19:06:38 UTC (rev 6239)
@@ -40,7 +40,7 @@
  * @author Thomas.Diesler at jboss.com
  * @since 20-Apr-2007 
  */
-public abstract class DeploymentAspect implements RuntimeAware
+public abstract class DeploymentAspect implements DeploymentLifecycle
 {
    // provide logging
    protected final Logger log = Logger.getLogger(getClass());
@@ -49,16 +49,6 @@
 
    private String provides;
    private String requires;
-
-   private WSFRuntime runtime;
-
-   public void setRuntimeAssociation(WSFRuntime runtime)
-   {      
-      if(this.runtime!=null)
-         throw new IllegalArgumentException("Already associated with a WSFRuntime:" + runtime);
-      
-      this.runtime = runtime;
-   }
    
    public String getProvides()
    {
@@ -80,20 +70,20 @@
       this.requires = requires;
    }
 
-   public void create(Deployment dep)
+   public void create(Deployment dep, WSFRuntime runtime)
    {
-      assert runtime!=null;
+
    }
 
-   public void destroy(Deployment dep)
+   public void destroy(Deployment dep, WSFRuntime runtime)
    {
    }
 
-   public void start(Deployment dep)
+   public void start(Deployment dep, WSFRuntime runtime)
    {
    }
 
-   public void stop(Deployment dep)
+   public void stop(Deployment dep, WSFRuntime runtime)
    {      
    }
 

Modified: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectManager.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectManager.java	2008-04-04 12:51:49 UTC (rev 6238)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspectManager.java	2008-04-04 19:06:38 UTC (rev 6239)
@@ -28,12 +28,15 @@
 import java.util.List;
 
 /**
- * A general service deployment manger.
+ * Process an ordered chain of {@link org.jboss.wsf.spi.deployment.DeploymentAspect}'s
+ * on a {@link org.jboss.wsf.spi.deployment.DeploymentLifecycle}
  * 
  * @author Thomas.Diesler at jboss.com
+ * @author Heiko.Braun at jboss.com
+ *
  * @since 20-Apr-2007 
  */
-public interface DeploymentAspectManager
+public interface DeploymentAspectManager extends DeploymentLifecycle
 {
    /** Get the name for this aspect manager */
    String getName();
@@ -50,12 +53,5 @@
    /** Set the list of registered deployment aspects */
    void setDeploymentAspects(List<DeploymentAspect> aspects);
 
-   void create(Deployment dep, WSFRuntime runtime);
-
-   void start(Deployment dep, WSFRuntime runtime);
-
-   void stop(Deployment dep, WSFRuntime runtime);
-   
-   void destroy(Deployment dep, WSFRuntime runtime);
 }
 

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentLifecycle.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentLifecycle.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentLifecycle.java	2008-04-04 19:06:38 UTC (rev 6239)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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 org.jboss.wsf.spi.WSFRuntime;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface DeploymentLifecycle
+{
+   void create(Deployment dep, WSFRuntime runtime);
+
+   void start(Deployment dep, WSFRuntime runtime);
+
+   void stop(Deployment dep, WSFRuntime runtime);
+
+   void destroy(Deployment dep, WSFRuntime runtime);
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/deployment/DeploymentLifecycle.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbossws-commits mailing list