1 23 24 package org.objectweb.fractal.julia.control.content; 25 26 import org.objectweb.fractal.api.Component; 27 import org.objectweb.fractal.api.control.ContentController; 28 import org.objectweb.fractal.api.control.IllegalContentException; 29 import org.objectweb.fractal.api.control.IllegalLifeCycleException; 30 import org.objectweb.fractal.api.control.LifeCycleController; 31 32 import org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException; 33 34 44 45 public abstract class LifeCycleContentMixin implements ContentController { 46 47 51 private LifeCycleContentMixin () { 52 } 53 54 58 68 69 public void removeFcSubComponent (final Component subComponent) 70 throws IllegalContentException, IllegalLifeCycleException 71 { 72 if (_this_weaveableOptLC != null) { 73 String state = _this_weaveableOptLC.getFcState(); 74 if (!LifeCycleController.STOPPED.equals(state)) { 75 throw new ChainedIllegalLifeCycleException( 76 null, _this_weaveableOptC, "The component is not stopped"); 77 } 78 } 79 _super_removeFcSubComponent(subComponent); 80 } 81 82 86 91 92 public Component _this_weaveableOptC; 93 94 99 100 public LifeCycleController _this_weaveableOptLC; 101 102 113 114 public abstract void _super_removeFcSubComponent (Component subComponent) 115 throws IllegalContentException, IllegalLifeCycleException; 116 } 117 | Popular Tags |