1 26 27 package org.objectweb.openccm.plugins.transaction.controller; 28 29 37 public abstract class WithControlController 38 extends WithCurrentController 39 { 40 46 50 protected org.omg.CosTransactions.Control control_; 51 52 53 59 63 public 64 WithControlController() 65 { 66 control_ = null; 67 } 68 69 70 76 81 protected void 82 suspend(org.objectweb.openccm.Containers.CallContext ctx) 83 { 84 control_ = current_.suspend(); 85 } 86 87 92 protected void 93 resume(org.objectweb.openccm.Containers.CallContext ctx) 94 { 95 if (control_ != null) 96 { 97 try 98 { 99 current_.resume(control_); 100 } catch (org.omg.CosTransactions.InvalidControl ex) { 101 } 102 control_ = null; 103 } 104 } 105 106 112 118 124 public abstract void 125 preinvoke(org.objectweb.openccm.Containers.CallContext ctx); 126 127 133 public abstract void 134 postinvoke(org.objectweb.openccm.Containers.CallContext ctx); 135 136 142 148 154 public abstract void 155 configure(org.objectweb.openccm.Containers.PropertySet config) 156 throws org.objectweb.openccm.Containers.ConfigurationFailed; 157 } 158 | Popular Tags |