1 26 package org.objectweb.openccm.descriptor.softpkg.ccm; 27 28 import org.omg.Components.Deployment.ComponentInstallation; 29 37 public class CodeDeployer 38 extends CodeDeployerContext 39 { 40 66 public String 67 intallCode(ComponentInstallation comp,String implementationID) 68 throws CodeInstallationFailureException 69 { 70 try{ 71 String fileAdress =getFileinarchiveDeployer() 72 .provideRessource(); 73 74 comp.install(implementationID,fileAdress); 75 } 76 catch(Exception e) 77 { 78 throw new CodeInstallationFailureException(this,e); 79 } 80 return getCode().getEntrypoint().getValue().trim(); 81 } 82 83 84 } 85 | Popular Tags |