1 26 27 package org.objectweb.openccm.descriptor.softpkg.ccm; 28 29 import org.objectweb.openccm.descriptor.softpkg.*; 31 32 40 public class DependencyDeployer 41 extends DependencyDeployerContext 42 { 43 44 50 56 62 68 76 public org.omg.Components.ConfigValue 77 resolveDependency(org.omg.Components.Deployment.ComponentInstallation server_inst) 78 throws DependencyResolutionFailureException 79 { 80 try{ 81 82 org.omg.Components.ConfigValue config = null; 83 Dependency dep=getDependency(); 84 if ((dep.getAction().compareToIgnoreCase("install") == 0) 85 && (dep.getFileinarchive()!=null) 86 && (dep.getFileinarchive().getName()!=null||(dep.getFileinarchive().getLink()!=null)) 87 89 ) 90 { 91 String fileAdress = 92 getFileinarchiveDeployer() 93 .provideRessource(); 94 95 server_inst.install 96 ( 97 dep.getFileinarchive().getName() 98 ,fileAdress); 99 101 102 if (dep.getType().trim(). 105 compareToIgnoreCase("Java Class") == 0) 106 { 107 config = new org.objectweb.openccm.Components.ConfigValueImpl(); 108 config.name = "load_lib_dependency"; 109 config.value = org.objectweb.openccm.corba.TheORB.getORB().create_any(); 110 config.value.insert_string(dep.getFileinarchive().getName()); 111 } 112 } 113 return config; 114 } 115 catch(Exception e){ 116 e.printStackTrace(); 117 throw new DependencyResolutionFailureException(this,e); 118 } 119 } 120 121 122 } 123 | Popular Tags |