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 LogPolicyFactoryImpl 39 extends org.omg.CORBA.LocalObject  40 implements org.coach.ECA.PolicyFactory 41 { 42 44 public 45 LogPolicyFactoryImpl() 46 { 47 } 48 49 53 public org.omg.CORBA.Policy  54 create_policy(String ptype, 55 String pvalue) 56 { 57 if (!ptype.equals("LogServicePolicy")) { 58 throw new Error ("Unknown policy type: "+ptype); 60 } 61 62 return new LogPolicyImpl(pvalue); 63 } 64 } 65 | Popular Tags |