1 26 27 package org.objectweb.openccm.Containers.Plugins; 28 29 36 37 public class EmptyConfiguration 38 extends org.omg.CORBA.LocalObject 39 implements org.objectweb.openccm.Containers.SystemConfiguration 40 { 41 47 53 57 public 58 EmptyConfiguration() 59 { 60 } 61 62 68 74 80 public org.objectweb.openccm.Containers.CallCoordinator 81 create_call_coordinator(java.lang.String uid, 82 java.lang.String op_name, 83 org.objectweb.openccm.Containers.SystemHomeFinder finder) 84 { 85 try 86 { 87 org.objectweb.openccm.Containers.SystemHome home = null; 88 home = finder.find_system_home("EmptyCoordinatorHome"); 89 return (org.objectweb.openccm.Containers.CallCoordinator)home.create_component(null); 90 } 91 catch(org.objectweb.openccm.Containers.HomeNotFound ex) 92 { 93 } 95 catch(org.objectweb.openccm.Containers.CreationFailed ex) 96 { 97 } 99 return null; 100 } 101 102 108 public org.objectweb.openccm.Containers.CallController[] 109 create_call_controllers(java.lang.String uid, 110 java.lang.String op_name, 111 org.objectweb.openccm.Containers.SystemHomeFinder finder) 112 { 113 try 114 { 115 org.objectweb.openccm.Containers.SystemHome home = null; 116 org.objectweb.openccm.Containers.CallController[] ctrls = 117 new org.objectweb.openccm.Containers.CallController[1]; 118 home = finder.find_system_home("EmptyControllerHome"); 119 ctrls[0] = (org.objectweb.openccm.Containers.CallController)home.create_component(null); 120 return ctrls; 121 } 122 catch(org.objectweb.openccm.Containers.HomeNotFound ex) 123 { 124 } 126 catch(org.objectweb.openccm.Containers.CreationFailed ex) 127 { 128 } 130 return null; 131 } 132 133 139 public org.objectweb.openccm.Containers.ActivationCoordinator 140 create_activation_coordinator(java.lang.String uid, 141 org.objectweb.openccm.Containers.SystemHomeFinder finder) 142 { 143 throw new java.lang.Error ("Can\'t use an empty coordinator for activation"); 145 } 146 147 153 public org.objectweb.openccm.Containers.ActivationController[] 154 create_activation_controllers(java.lang.String uid, 155 org.objectweb.openccm.Containers.SystemHomeFinder finder) 156 { 157 throw new java.lang.Error ("Can\'t use an empty controller for activation"); 159 } 160 161 167 public org.objectweb.openccm.Containers.PCAPolicy[] 168 create_PCAPolicies(java.lang.String uid, 169 org.objectweb.openccm.Containers.SystemHomeFinder finder) 170 { 171 return new org.objectweb.openccm.Containers.PCAPolicy[0]; 172 } 173 174 180 public void 181 set_parent_configuration(org.objectweb.openccm.Containers.SystemConfiguration config) 182 { 183 } 184 185 191 197 203 public void 204 configure(org.objectweb.openccm.Containers.PropertySet config) 205 throws org.objectweb.openccm.Containers.ConfigurationFailed 206 { 207 throw new org.objectweb.openccm.Containers.ConfigurationFailed("not implemented !"); 211 } 212 } 213 | Popular Tags |