[jboss-cvs] JBossAS SVN: r103042 - in projects/profileservice/trunk: spi/src/main/java/org/jboss/deployers/spi/management/deploy and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 26 09:31:12 EDT 2010


Author: emuckenhuber
Date: 2010-03-26 09:31:12 -0400 (Fri, 26 Mar 2010)
New Revision: 103042

Removed:
   projects/profileservice/trunk/plugins/src/main/java/org/jboss/profileservice/plugins/deploy/DeploymentManagerImpl.java
Modified:
   projects/profileservice/trunk/spi/src/main/java/org/jboss/deployers/spi/management/deploy/DeploymentManager.java
Log:
re-add load and release methods

Deleted: projects/profileservice/trunk/plugins/src/main/java/org/jboss/profileservice/plugins/deploy/DeploymentManagerImpl.java
===================================================================
--- projects/profileservice/trunk/plugins/src/main/java/org/jboss/profileservice/plugins/deploy/DeploymentManagerImpl.java	2010-03-26 13:15:51 UTC (rev 103041)
+++ projects/profileservice/trunk/plugins/src/main/java/org/jboss/profileservice/plugins/deploy/DeploymentManagerImpl.java	2010-03-26 13:31:12 UTC (rev 103042)
@@ -1,100 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2009, 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.profileservice.plugins.deploy;
-
-import java.net.URL;
-import java.util.Collection;
-
-import org.jboss.deployers.spi.management.deploy.DeploymentManager;
-import org.jboss.deployers.spi.management.deploy.DeploymentProgress;
-import org.jboss.profileservice.spi.DeploymentOption;
-import org.jboss.profileservice.spi.ProfileKey;
-
-/**
- * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class DeploymentManagerImpl implements DeploymentManager
-{
-
-   public DeploymentProgress distribute(String name, URL contentURL, boolean copyContent) throws Exception
-   {
-      // FIXME distribute
-      return null;
-   }
-
-   public DeploymentProgress distribute(String name, URL contentURL, DeploymentOption... options) throws Exception
-   {
-      // FIXME distribute
-      return null;
-   }
-
-   public Collection<ProfileKey> getProfiles()
-   {
-      // FIXME getProfiles
-      return null;
-   }
-
-   public String[] getRepositoryNames(String[] names) throws Exception
-   {
-      // FIXME getRepositoryNames
-      return null;
-   }
-
-   public boolean isRedeploySupported()
-   {
-      // FIXME isRedeploySupported
-      return false;
-   }
-
-   public DeploymentProgress prepare(String... names) throws Exception
-   {
-      // FIXME prepare
-      return null;
-   }
-
-   public DeploymentProgress redeploy(String name) throws Exception
-   {
-      // FIXME redeploy
-      return null;
-   }
-
-   public DeploymentProgress remove(String... names) throws Exception
-   {
-      // FIXME remove
-      return null;
-   }
-
-   public DeploymentProgress start(String... names) throws Exception
-   {
-      // FIXME start
-      return null;
-   }
-
-   public DeploymentProgress stop(String... names) throws Exception
-   {
-      // FIXME stop
-      return null;
-   }
-
-}
-

Modified: projects/profileservice/trunk/spi/src/main/java/org/jboss/deployers/spi/management/deploy/DeploymentManager.java
===================================================================
--- projects/profileservice/trunk/spi/src/main/java/org/jboss/deployers/spi/management/deploy/DeploymentManager.java	2010-03-26 13:15:51 UTC (rev 103041)
+++ projects/profileservice/trunk/spi/src/main/java/org/jboss/deployers/spi/management/deploy/DeploymentManager.java	2010-03-26 13:31:12 UTC (rev 103042)
@@ -38,6 +38,22 @@
 {
    
    /**
+    * Load and associate the given profile with the DeploymentManager
+    * for future operations.
+    * 
+    * @param key - the profile to load
+    * @throws Exception for any error
+    */
+   void loadProfile(ProfileKey key) throws Exception;
+
+   /**
+    * Release the previous loaded profile.
+    * 
+    * @throws Exception
+    */
+   void releaseProfile() throws Exception;
+   
+   /**
     * Get a collection of profiles supporting deployment actions.
     * 
     * @return a collection of profiles keys




More information about the jboss-cvs-commits mailing list