1 26 27 package org.objectweb.openccm.Containers.Plugins; 28 29 36 37 public class SingleCallController 38 extends org.omg.CORBA.LocalObject 39 implements org.objectweb.openccm.Containers.ActivationController 40 { 41 47 53 57 public 58 SingleCallController() 59 { 60 } 61 62 68 74 80 86 public void 87 preinvoke(org.objectweb.openccm.Containers.ActivationContext ctx) 88 { 89 if (ctx.state()==org.objectweb.openccm.Containers.ActivationContext.DEACTIVATED) 90 ctx.state(org.objectweb.openccm.Containers.ActivationContext.ACTIVATED); 91 else 92 { 93 java.lang.String msg = "Component should not be activated in preinvoke operation using a single call strategy"; 95 throw new java.lang.Error (msg); 96 } 97 } 98 99 105 public void 106 postinvoke(org.objectweb.openccm.Containers.ActivationContext ctx) 107 { 108 if (ctx.state()==org.objectweb.openccm.Containers.ActivationContext.ACTIVATED) 109 ctx.state(org.objectweb.openccm.Containers.ActivationContext.DEACTIVATED); 110 } 111 112 118 124 130 public void 131 configure(org.objectweb.openccm.Containers.PropertySet config) 132 throws org.objectweb.openccm.Containers.ConfigurationFailed 133 { 134 } 135 } 136 | Popular Tags |