1 22 package org.jboss.system.server.profileservice; 23 24 import org.jboss.deployers.plugins.structure.AbstractDeploymentContext; 25 import org.jboss.deployers.spi.structure.DeploymentContext; 26 import org.jboss.profileservice.spi.Profile; 27 import org.jboss.virtual.VirtualFile; 28 29 35 public class VFSDeployerScannerImpl extends VFSScanner 36 { 37 protected DeploymentContext add(Profile profile, VirtualFile file) throws Exception 38 { 39 DeploymentContext deployment = new AbstractDeploymentContext(file); 40 if( profile.getDeployer(deployment.getName()) == null ) 41 profile.addDeployer(deployment); 42 return deployment; 43 } 44 45 protected void remove(Profile profile, String name) 46 { 47 profile.removeDeployer(name); 48 } 49 } 50 | Popular Tags |