1 26 27 package org.objectweb.openccm.Containers.Plugins; 28 29 36 37 public class ListCoordinator 38 extends org.omg.CORBA.LocalObject 39 implements org.objectweb.openccm.Containers.CallCoordinator, 40 org.objectweb.openccm.Containers.ActivationCoordinator 41 { 42 48 51 protected org.objectweb.ccm.util.Vector controllers_; 52 53 59 63 public 64 ListCoordinator() 65 { 66 controllers_ = new org.objectweb.ccm.util.Vector(); 67 } 68 69 75 81 87 public org.objectweb.openccm.Containers.CallCoordinator 88 add(org.objectweb.openccm.Containers.CallController ctrl) 89 { 90 controllers_.add(ctrl); 91 return this; 92 } 93 94 100 106 public org.objectweb.openccm.Containers.ActivationCoordinator 107 add(org.objectweb.openccm.Containers.ActivationController ctrl) 108 { 109 controllers_.add(ctrl); 110 return this; 111 } 112 113 119 125 public void 126 preinvoke(org.objectweb.openccm.Containers.CallContext ctx) 127 { 128 org.objectweb.openccm.Containers.CallController[] ctrls = null; 129 ctrls = (org.objectweb.openccm.Containers.CallController[]) 130 controllers_.toArray(new org.objectweb.openccm.Containers.CallController[0]); 131 132 for (int i=0;i<ctrls.length;i++) 133 ctrls[i].preinvoke(ctx); 134 } 135 136 142 public void 143 postinvoke(org.objectweb.openccm.Containers.CallContext ctx) 144 { 145 org.objectweb.openccm.Containers.CallController[] ctrls = null; 146 ctrls = (org.objectweb.openccm.Containers.CallController[]) 147 controllers_.toArray(new org.objectweb.openccm.Containers.CallController[0]); 148 149 for (int i=0;i<ctrls.length;i++) 150 ctrls[i].postinvoke(ctx); 151 } 152 153 159 165 public void 166 preinvoke(org.objectweb.openccm.Containers.ActivationContext ctx) 167 { 168 org.objectweb.openccm.Containers.ActivationController[] ctrls = null; 169 ctrls = (org.objectweb.openccm.Containers.ActivationController[]) 170 controllers_.toArray(new org.objectweb.openccm.Containers.ActivationController[0]); 171 172 for (int i=0;i<ctrls.length;i++) 173 ctrls[i].preinvoke(ctx); 174 } 175 176 182 public void 183 postinvoke(org.objectweb.openccm.Containers.ActivationContext ctx) 184 { 185 org.objectweb.openccm.Containers.ActivationController[] ctrls = null; 186 ctrls = (org.objectweb.openccm.Containers.ActivationController[]) 187 controllers_.toArray(new org.objectweb.openccm.Containers.ActivationController[0]); 188 189 for (int i=0;i<ctrls.length;i++) 190 ctrls[i].postinvoke(ctx); 191 } 192 193 199 205 211 public void 212 configure(org.objectweb.openccm.Containers.PropertySet config) 213 throws org.objectweb.openccm.Containers.ConfigurationFailed 214 { 215 } 216 } 217 | Popular Tags |