1 26 27 package org.objectweb.openccm.Deployment; 28 29 36 37 public class SystemHomeManagerImpl 38 extends org.omg.CORBA.LocalObject 39 implements org.objectweb.openccm.Containers.SystemHomeManager 40 { 41 47 50 protected org.objectweb.ccm.util.Table system_homes_; 51 52 58 61 public 62 SystemHomeManagerImpl() 63 { 64 system_homes_ = new org.objectweb.ccm.util.Table(); 65 } 66 67 73 76 public org.objectweb.openccm.Containers.SystemHome 77 create_system_home(java.lang.String implUUID, 78 java.lang.String alias, 79 java.lang.String entrypt) 80 throws org.objectweb.openccm.Containers.CreationFailed 81 { 82 try 83 { 84 TheComponentInstallation.getComponentInstallation().get_implementation(implUUID); 85 86 java.lang.Object obj = 88 TheURLClassLoader.getURLClassLoader().callStaticClassMethod(entrypt, new Object [0]); 89 90 org.objectweb.openccm.Containers.SystemHome home = (org.objectweb.openccm.Containers.SystemHome)obj; 92 system_homes_.put(alias, home); 93 return home; 94 } 95 catch(org.omg.Components.Deployment.UnknownImplId ex) 96 { 97 throw new org.objectweb.openccm.Containers.CreationFailed(); 98 } 99 catch(org.omg.Components.Deployment.InstallationFailure ex) 100 { 101 throw new org.objectweb.openccm.Containers.CreationFailed(); 102 } 103 catch(java.lang.ClassNotFoundException ex) 104 { 105 throw new org.objectweb.openccm.Containers.CreationFailed(); 106 } 107 catch(java.lang.NoSuchMethodException ex) 108 { 109 throw new org.objectweb.openccm.Containers.CreationFailed(); 110 } 111 catch(java.lang.reflect.InvocationTargetException ex) 112 { 113 throw new org.objectweb.openccm.Containers.CreationFailed(); 114 } 115 catch(java.lang.IllegalAccessException ex) 116 { 117 throw new org.objectweb.openccm.Containers.CreationFailed(); 118 } 119 catch(java.lang.ClassCastException ex) 120 { 121 throw new org.objectweb.openccm.Containers.CreationFailed(); 122 } 123 } 124 125 128 public org.objectweb.openccm.Containers.SystemHome 129 find_system_home(java.lang.String alias) 130 throws org.objectweb.openccm.Containers.HomeNotFound 131 { 132 java.lang.Object home = system_homes_.get(alias); 133 if (home==null) 134 throw new org.objectweb.openccm.Containers.HomeNotFound(); 135 136 return (org.objectweb.openccm.Containers.SystemHome)home; 137 } 138 } 139 | Popular Tags |