[jboss-cvs] JBossAS SVN: r81381 - projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Nov 20 19:42:07 EST 2008
Author: scott.stark at jboss.org
Date: 2008-11-20 19:42:07 -0500 (Thu, 20 Nov 2008)
New Revision: 81381
Modified:
projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/DeploymentRepository.java
projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/Profile.java
Log:
Add an attachment root and change the updateDeployment signature to accept a ManagedComponent
Modified: projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/DeploymentRepository.java
===================================================================
--- projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/DeploymentRepository.java 2008-11-21 00:30:27 UTC (rev 81380)
+++ projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/DeploymentRepository.java 2008-11-21 00:42:07 UTC (rev 81381)
@@ -23,15 +23,14 @@
import java.io.IOException;
import java.io.InputStream;
-import java.io.Serializable;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Collection;
-import java.util.Map;
import java.util.Set;
import org.jboss.deployers.spi.attachments.Attachments;
import org.jboss.deployers.vfs.spi.client.VFSDeployment;
+import org.jboss.managed.api.ManagedComponent;
import org.jboss.managed.api.ManagedDeployment.DeploymentPhase;
import org.jboss.virtual.VirtualFile;
@@ -40,19 +39,66 @@
*
* @author Scott.Stark at jboss.org
* @author adrian at jboss.org
- * @version $Revision:$
+ * @version $Revision$
*/
public interface DeploymentRepository
{
+ /**
+ * Get the admin attachments root path
+ * @return path to the root directory for attachments
+ */
+ public String getAttachmentsRoot();
+ /**
+ * Set the admin attachments root path
+ * @param root - path to the root directory for attachments
+ */
+ public void setAttachmentsRoot(String root);
+
+ /**
+ * Create the repository
+ * @throws Exception
+ */
public void create() throws Exception;
+ /**
+ * Load the repository contents
+ * @throws Exception
+ */
public void load() throws Exception;
+ /**
+ * Delete the repository
+ * @throws Exception
+ */
public void remove() throws Exception;
+ /**
+ * Get the time any contents were last modified
+ * @return
+ */
public long getLastModified();
+ /**
+ * Get the URI of the root of deployments for the given phase.
+ * @param phase - the phase of deployment
+ * @return URI of the root of deployments for the given phase.
+ */
public URI getDeploymentURI(DeploymentPhase phase);
+ /**
+ * Get the URI of the root of deployments for the given phase.
+ * @param phase - the phase of deployment
+ * @param uri - URI of the root of deployments
+ */
public void setDeploymentURI(URI uri, DeploymentPhase phase);
+ /**
+ * Get the names of all deployments in the repository
+ * @return
+ */
public Set<String> getDeploymentNames();
+ /**
+ * Get the names of all deployments in the repository for the
+ * given phase.
+ * @param phase - the phase of deployment
+ * @return names of all deployments
+ */
public Set<String> getDeploymentNames(DeploymentPhase phase);
@@ -171,12 +217,13 @@
*
* @param vfsPath - the vfs path relative to the phase root for the deployment
* @param phase - the deployment phase
- * @param attachments - the attachments that have been modified
+ * @param comp - the ManagedComponent that has been modified
* @throws Exception
*/
public void updateDeployment(VFSDeployment d, DeploymentPhase phase,
- Map<String, Object> attachments)
+ ManagedComponent comp)
throws Exception;
+
/**
* Get a named deployment.
*
Property changes on: projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/DeploymentRepository.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Modified: projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/Profile.java
===================================================================
--- projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/Profile.java 2008-11-21 00:30:27 UTC (rev 81380)
+++ projects/integration/trunk/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/Profile.java 2008-11-21 00:42:07 UTC (rev 81381)
@@ -26,6 +26,7 @@
import java.util.Set;
import org.jboss.deployers.vfs.spi.client.VFSDeployment;
+import org.jboss.managed.api.ManagedComponent;
import org.jboss.managed.api.ManagedDeployment.DeploymentPhase;
import org.jboss.virtual.VirtualFile;
@@ -104,7 +105,7 @@
* @throws Exception for any error
*/
void updateDeployment(VFSDeployment d, DeploymentPhase phase,
- Map<String, Object> attachments)
+ ManagedComponent comp)
throws Exception;
/**
More information about the jboss-cvs-commits
mailing list