1 26 27 package org.objectweb.openccm.Deployment; 28 29 39 40 public class ServerImpl 41 extends ServerPOA 42 { 43 49 52 protected org.objectweb.ccm.util.URLClassLoader class_loader_; 53 54 57 protected ComponentServerImpl component_server_facet_; 58 59 62 protected org.omg.Components.Deployment.ComponentServer component_server_ref_; 63 64 67 protected ComponentInstallationImpl install_facet_; 68 69 72 protected org.omg.Components.Deployment.ComponentInstallation install_ref_; 73 74 80 83 public 84 ServerImpl() 85 { 86 component_server_facet_ = new ComponentServerImpl(); 88 89 org.omg.CORBA.Object ref = component_server_facet_._this_object(org.objectweb.openccm.corba.TheORB.getORB()); 92 component_server_ref_ = org.omg.Components.Deployment.ComponentServerHelper.narrow(ref); 93 94 String path = System.getProperties().getProperty ("OpenCCM.ComponentServer.archive_cache", "."); 96 97 install_facet_ = new ComponentInstallationImpl(path); 99 100 ref = install_facet_._this_object(org.objectweb.openccm.corba.TheORB.getORB()); 103 install_ref_ = org.omg.Components.Deployment.ComponentInstallationHelper.narrow(ref); 104 TheComponentInstallation.setComponentInstallation(install_ref_); 105 } 106 107 113 119 125 131 public void 132 shutdown() 133 { 134 org.objectweb.openccm.corba.TheORB.shutdown(false); 135 } 136 137 143 151 public org.omg.Components.Deployment.ComponentServer 152 provide_component_server() 153 { 154 return component_server_ref_; 155 } 156 157 165 public org.omg.Components.Deployment.ComponentInstallation 166 provide_install() 167 { 168 return install_ref_; 169 } 170 } 171 | Popular Tags |