1 28 29 30 package org.objectweb.ccm.logservice; 31 32 import org.objectweb.corba.runtime.*; 33 import org.objectweb.corba.logservice.*; 34 35 38 public class LogServiceInitializerImpl 39 extends org.omg.CORBA.LocalObject 40 implements org.coach.ECA.ServiceInitializer 41 { 42 44 public 45 LogServiceInitializerImpl() 46 { 47 } 48 49 53 static public org.coach.ECA.ServiceInitializer 54 create_initializer() 55 { 56 return new LogServiceInitializerImpl(); 57 } 58 59 63 final public String 64 service_id() 65 { 66 return LOG_SERVICE_ID.value; 67 } 68 69 final public void 70 pre_install(org.coach.ECA.ServiceInitInfo info) 71 { 72 String orbinit = "org.objectweb.corba.logservice.LogORBInitializerImpl"; 74 info.register_orb_initializer(service_id(), orbinit); 75 } 76 77 final public void 78 post_install(org.coach.ECA.ServiceInitInfo info) 79 { 80 LogServer server = LogServerHelper.narrow(info.resolve_initial_references(service_id())); 82 83 LogCurrent current = LogCurrentHelper.narrow(info.get_current(LOG_CURRENT_ID.value)); 85 86 LogInternalImpl internal = new LogInternalImpl(server); 88 info.register_service_internal(service_id(), LOG_SERVICE_INTERNAL_ID.value, internal); 89 90 LogCallControllerFactoryImpl cfact = new LogCallControllerFactoryImpl(current); 92 info.register_controller_factory(service_id(), cfact); 93 94 LogPolicyFactoryImpl pfact = new LogPolicyFactoryImpl(); 96 info.register_policy_factory(service_id(), LOG_SERVICE_POLICY.value, pfact); 97 98 } 100 } 101 | Popular Tags |