[jbossws-commits] JBossWS SVN: r8329 - in framework/trunk/src/main/java/org/jboss/wsf/framework: deployment and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Oct 6 04:26:57 EDT 2008


Author: richard.opalka at jboss.com
Date: 2008-10-06 04:26:57 -0400 (Mon, 06 Oct 2008)
New Revision: 8329

Added:
   framework/trunk/src/main/java/org/jboss/wsf/framework/DeploymentAspectManagerLocatorImpl.java
   framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointDeployerLifecycleDeploymentAspect.java
   framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointServletLifecycleDeploymentAspect.java
Modified:
   framework/trunk/src/main/java/org/jboss/wsf/framework/DefaultSPIProvider.java
Log:
[JBWS-2246][JBWS-2264][JBAS-5732] providing DA manager locator implementation + introducing deployers and servlet endpoint lifecycle aspects

Modified: framework/trunk/src/main/java/org/jboss/wsf/framework/DefaultSPIProvider.java
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/DefaultSPIProvider.java	2008-10-06 08:23:18 UTC (rev 8328)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/DefaultSPIProvider.java	2008-10-06 08:26:57 UTC (rev 8329)
@@ -54,6 +54,7 @@
 import org.jboss.wsf.spi.serviceref.ServiceRefBinderFactory;
 import org.jboss.wsf.spi.serviceref.ServiceRefHandlerFactory;
 import org.jboss.wsf.spi.util.ServiceLoader;
+import org.jboss.wsf.spi.DeploymentAspectManagerLocator;
 
 /**
  * @author Thomas.Diesler at jboss.com
@@ -151,6 +152,10 @@
       {
          returnType = (T)loadService(spiType, null);
       }
+      else if (DeploymentAspectManagerLocator.class.equals(spiType))
+      {
+         returnType = (T)loadService(spiType, null);
+      }
 
       if (returnType == null)
          throw new WSFException("Failed to provide SPI '" + spiType + "'");

Added: framework/trunk/src/main/java/org/jboss/wsf/framework/DeploymentAspectManagerLocatorImpl.java
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/DeploymentAspectManagerLocatorImpl.java	                        (rev 0)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/DeploymentAspectManagerLocatorImpl.java	2008-10-06 08:26:57 UTC (rev 8329)
@@ -0,0 +1,40 @@
+/*
+ * 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.framework;
+
+import org.jboss.wsf.common.KernelAwareSPIFactory;
+import org.jboss.wsf.spi.deployment.DeploymentAspectManager;
+import org.jboss.wsf.spi.DeploymentAspectManagerLocator;
+
+/**
+ * DeploymentAspectManagerLocator implementation
+ * @author richard.opalka at jboss.com
+ */
+public final class DeploymentAspectManagerLocatorImpl implements DeploymentAspectManagerLocator
+{
+   public DeploymentAspectManager locateDeploymentAspectManager(String managerName)
+   {
+      return new KernelAwareSPIFactory().getKernelProvidedSPI(
+            managerName, DeploymentAspectManager.class
+      );
+   }
+}

Added: framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointDeployerLifecycleDeploymentAspect.java
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointDeployerLifecycleDeploymentAspect.java	                        (rev 0)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointDeployerLifecycleDeploymentAspect.java	2008-10-06 08:26:57 UTC (rev 8329)
@@ -0,0 +1,44 @@
+/*
+ * 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.framework.deployment;
+
+import org.jboss.wsf.spi.WSFRuntime;
+import org.jboss.wsf.spi.deployment.Deployment;
+
+/**
+ * Lifecycle deployer handler dealing with CREATE and DESTROY only
+ * @author richard.opalka at jboss.com
+ */
+public class EndpointDeployerLifecycleDeploymentAspect extends EndpointLifecycleDeploymentAspect
+{
+   @Override
+   public void start(Deployment dep, WSFRuntime runtime)
+   {
+      // do nothing in deployers
+   }
+
+   @Override
+   public void stop(Deployment dep, WSFRuntime runtime)
+   {
+      // do nothing in deployers
+   }
+}

Added: framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointServletLifecycleDeploymentAspect.java
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointServletLifecycleDeploymentAspect.java	                        (rev 0)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/EndpointServletLifecycleDeploymentAspect.java	2008-10-06 08:26:57 UTC (rev 8329)
@@ -0,0 +1,44 @@
+/*
+ * 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.framework.deployment;
+
+import org.jboss.wsf.spi.WSFRuntime;
+import org.jboss.wsf.spi.deployment.Deployment;
+
+/**
+ * Lifecycle deployer handler dealing with START and STOP only
+ * @author richard.opalka at jboss.com
+ */
+public class EndpointServletLifecycleDeploymentAspect extends EndpointLifecycleDeploymentAspect
+{
+   @Override
+   public void create(Deployment dep, WSFRuntime runtime)
+   {
+      // do nothing in servlet
+   }
+
+   @Override
+   public void destroy(Deployment dep, WSFRuntime runtime)
+   {
+      // do nothing in servlet
+   }
+}




More information about the jbossws-commits mailing list