[jboss-dev-forums] [Design of POJO Server] - Re: Moving forward with the profile service mgmt api
scott.stark@jboss.org
do-not-reply at jboss.com
Mon Dec 18 03:11:40 EST 2006
Still too many distractions to get this done this weekend. I have checked in the current state. The two things to complete are getting the attachments for the base deployments stored in the repository, and then obtaining the attachments for a ManagedObject update to store as overrides. The profile repository notion I'm working with is defined by this spi:
| package org.jboss.profileservice.spi;
|
| import java.io.IOException;
| import java.io.InputStream;
| import java.net.URI;
| import java.util.Collection;
| import java.util.zip.ZipInputStream;
|
| import org.jboss.deployers.spi.attachments.Attachments;
| import org.jboss.deployers.spi.structure.DeploymentContext;
| import org.jboss.virtual.VirtualFile;
|
| /**
| * An interface for managing the contents of a Profile.
| *
| * @author Scott.Stark at jboss.org
| * @version $Revision:$
| */
| public interface DeploymentRepository
| {
| public URI getBootstrapURI();
| public void setBootstrapURI(URI uri);
| public URI getDeployersURI();
| public void setDeployersURI(URI uri);
| public URI getDeploymentURI();
| public void setDeploymentURI(URI rootURI);
|
| // Upload a raw deployment
| public VirtualFile addDeploymentFile(String name, ZipInputStream contentIS)
| throws IOException;
| // Get the raw deployment
| public VirtualFile getDeploymentFile(String name);
|
| // Bootstrap
| public void addBootstrap(String vfsPath, DeploymentContext ctx)
| throws IOException;
| public DeploymentContext getBootstrap(String vfsPath);
| public Collection<DeploymentContext> getBootstraps();
| public void removeBootstrap(String vfsPath)
| throws IOException;
|
| // Deployers
| public void addDeployer(String vfsPath, DeploymentContext ctx)
| throws IOException;
| public DeploymentContext getDeployer(String vfsPath);
| public Collection<DeploymentContext> getDeployers();
| public void removeDeployer(String vfsPath)
| throws IOException;
|
| // Deployments
| public void addDeployment(String vfsPath, DeploymentContext ctx)
| throws IOException;
| public DeploymentContext getDeployment(String vfsPath);
| public void removeDeployment(String vfsPath)
| throws IOException;
| public Collection<DeploymentContext> getDeployments();
|
| // Managed object attachments for a deployment
| public void addManagedObject(String vfsPath, Attachments edits)
| throws IOException;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994568#3994568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994568
More information about the jboss-dev-forums
mailing list