1 26 27 package org.objectweb.openccm.plugins.transaction.controller; 28 29 36 37 public class TransactionControllerHome 38 extends org.omg.CORBA.LocalObject 39 implements org.objectweb.openccm.Containers.SystemHome 40 { 41 47 53 57 protected 58 TransactionControllerHome() 59 { 60 } 61 62 68 74 80 public org.objectweb.openccm.Containers.SystemComponent 81 create_component(org.objectweb.openccm.Containers.PropertySet config) 82 { 83 org.objectweb.openccm.Containers.StringProperty _property; 84 try 85 { 86 _property = config.get_as_string("OTS_Policy"); 87 } catch(org.objectweb.openccm.Containers.UnknownProperty ex) { 88 return null; 89 } catch(org.objectweb.openccm.Containers.BadPropertyKind ex) { 90 return null; 91 } 92 93 if ( _property.value().equals("NOT_SUPPORTED")) 94 return new NotSupportedController(); 95 else if ( _property.value().equals("REQUIRED")) 96 return new RequiredController(); 97 else if ( _property.value().equals("SUPPORTS")) 98 return new SupportsController(); 99 else if ( _property.value().equals("REQUIRES_NEW")) 100 return new RequiresNewController(); 101 else if ( _property.value().equals("MANDATORY")) 102 return new MandatoryController(); 103 else if ( _property.value().equals("NEVER")) 104 return new NeverController(); 105 else 106 return null; 107 } 108 109 115 121 127 public void 128 configure(org.objectweb.openccm.Containers.PropertySet config) 129 throws org.objectweb.openccm.Containers.ConfigurationFailed 130 { 131 } 132 133 139 142 public static TransactionControllerHome 143 create() 144 { 145 return new TransactionControllerHome(); 146 } 147 148 } 154 155 | Popular Tags |