/* */ package org.jboss.system.server.profileservice;
/* */
/* */ import org.jboss.deployers.vfs.spi.client.VFSDeployment;
/* */ import org.jboss.managed.api.ManagedDeployment.DeploymentPhase;
/* */ import org.jboss.profileservice.spi.Profile;
/* */ import org.jboss.virtual.VirtualFile;
/* */
/* */ public class VFSDeploymentScannerImpl extends VFSScanner
/* */ {
/* */ protected VFSDeployment add(Profile profile, VirtualFile file)
/* */ throws Exception
/* */ {
/* 39 */ VFSDeployment deployment = createDeployment(file);
/* 40 */ if (!profile.hasDeployment(deployment.getName(), ManagedDeployment.DeploymentPhase.APPLICATION))
/* 41 */ profile.addDeployment(deployment, ManagedDeployment.DeploymentPhase.APPLICATION);
/* 42 */ return deployment;
/* */ }
/* */
/* */ protected void remove(Profile profile, String name) throws Exception
/* */ {
/* 47 */ profile.removeDeployment(name, ManagedDeployment.DeploymentPhase.APPLICATION);
/* */ }
/* */ }
/* Location: /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name: org.jboss.system.server.profileservice.VFSDeploymentScannerImpl
* JD-Core Version: 0.6.0
*/