/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#getFcLifeCycleControllers(org.objectweb.fractal.api.Component) */ public org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] getFcLifeCycleControllers(final org.objectweb.fractal.api.Component id) throws org.objectweb.fractal.api.control.IllegalLifeCycleException { java.util.List clccList = getFcInternalLifeCycleControllers(); java.lang.Object[] sItfs = id.getFcInterfaces(); java.util.Set visited = new java.util.HashSet(); for (int i = 0; i < (sItfs.length); ++i) { org.objectweb.fractal.api.Interface sItf = ((org.objectweb.fractal.api.Interface) (sItfs[i])); if (!(((org.objectweb.fractal.api.type.InterfaceType) (sItf.getFcItfType())).isFcClientItf())) { getSExtLifeCycleControllers(sItf, clccList, visited); } } org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] clccs; clccs = new org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[clccList.size()]; return ((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[]) (clccList.toArray(clccs))); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#stopFc() */ public void stopFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { org.objectweb.fractal.api.Component id; try { id = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot stop component"); } org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] clccs = getFcLifeCycleControllers(id); stopFc(clccs); setFcState(false); }
/** * @see org.objectweb.fractal.julia.UseComponentMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ public void initFcController(final org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { weaveableC = ((org.objectweb.fractal.api.Component) (ic.getInterface("component"))); weaveableOptC = weaveableC; initFcController$0(ic); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#startFc() */ private void startFc$0() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { org.objectweb.fractal.api.Component id; try { id = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot start component"); } org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] clccs = getFcLifeCycleControllers(id); for (int i = 0; i < (clccs.length); ++i) { clccs[i].setFcStarted(); } setFcState(true); }
public org.objectweb.fractal.api.Component newFcControllerInstantiation(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { Object ctrl = null; ic.controllers.add(ctrl = new juliac.generated.ComponentImpl()); org.objectweb.fractal.api.Component compctrl = (org.objectweb.fractal.api.Component)ctrl; ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); return compctrl; }
/** * @see org.objectweb.fractal.julia.control.lifecycle.TypeLifeCycleMixin#startFc() */ public void startFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { org.objectweb.fractal.api.Component thisComponent; try { thisComponent = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot start the component"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(thisComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { org.objectweb.fractal.api.Component subComponent = ((org.objectweb.fractal.api.Component) (allSubComponents.get(i))); try { checkFcMandatoryInterfaces(subComponent); } catch (org.objectweb.fractal.api.control.IllegalBindingException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot start the component"); } } startFc$0(); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#getSExtLifeCycleControllers(org.objectweb.fractal.api.Interface,java.util.List,java.util.Set) */ private void getSExtLifeCycleControllers(final org.objectweb.fractal.api.Interface serverItf, final java.util.List clccList, final java.util.Set visited) throws org.objectweb.fractal.api.control.IllegalLifeCycleException { java.lang.Object[] comps; try { comps = org.objectweb.fractal.julia.control.binding.Util.getFcPotentialClientsOf(serverItf).toArray(); } catch (java.lang.Exception e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, serverItf.getFcItfOwner(), "Cannot get the LifeCycleCoordinator interfaces"); } for (int i = 0; i < (comps.length); ++i) { org.objectweb.fractal.api.Component comp = ((org.objectweb.fractal.api.Component) (comps[i])); org.objectweb.fractal.api.Interface[] clientItfs; try { java.util.List l = org.objectweb.fractal.julia.control.binding.Util.getFcClientItfsBoundTo(comp, serverItf); clientItfs = ((org.objectweb.fractal.api.Interface[]) (l.toArray(new org.objectweb.fractal.api.Interface[l.size()]))); } catch (java.lang.Exception e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, serverItf.getFcItfOwner(), "Cannot get the LifeCycleCoordinator interfaces"); } for (int j = 0; j < (clientItfs.length); ++j) { getCExtLifeCycleControllers(clientItfs[j], clccList, visited); } } }
getSExtLifeCycleControllers(itf, clccList, visited);
public org.objectweb.fractal.api.Component newFcControllerInstantiation(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { Object ctrl = null; ic.controllers.add(ctrl = new juliac.generated.SCAContainerContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositeIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositePropertyControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ComponentImpl()); org.objectweb.fractal.api.Component compctrl = (org.objectweb.fractal.api.Component)ctrl; ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); return compctrl; }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#startFc() */ private void startFc$0() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { org.objectweb.fractal.api.Component id; try { id = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot start component"); } org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] clccs = getFcLifeCycleControllers(id); for (int i = 0; i < (clccs.length); ++i) { clccs[i].setFcStarted(); } setFcState(true); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.TypeLifeCycleMixin#startFc() */ public void startFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { org.objectweb.fractal.api.Component thisComponent; try { thisComponent = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot start the component"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(thisComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { org.objectweb.fractal.api.Component subComponent = ((org.objectweb.fractal.api.Component) (allSubComponents.get(i))); try { checkFcMandatoryInterfaces(subComponent); } catch (org.objectweb.fractal.api.control.IllegalBindingException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot start the component"); } } startFc$0(); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#getSExtLifeCycleControllers(org.objectweb.fractal.api.Interface,java.util.List,java.util.Set) */ private void getSExtLifeCycleControllers(final org.objectweb.fractal.api.Interface serverItf, final java.util.List clccList, final java.util.Set visited) throws org.objectweb.fractal.api.control.IllegalLifeCycleException { java.lang.Object[] comps; try { comps = org.objectweb.fractal.julia.control.binding.Util.getFcPotentialClientsOf(serverItf).toArray(); } catch (java.lang.Exception e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, serverItf.getFcItfOwner(), "Cannot get the LifeCycleCoordinator interfaces"); } for (int i = 0; i < (comps.length); ++i) { org.objectweb.fractal.api.Component comp = ((org.objectweb.fractal.api.Component) (comps[i])); org.objectweb.fractal.api.Interface[] clientItfs; try { java.util.List l = org.objectweb.fractal.julia.control.binding.Util.getFcClientItfsBoundTo(comp, serverItf); clientItfs = ((org.objectweb.fractal.api.Interface[]) (l.toArray(new org.objectweb.fractal.api.Interface[l.size()]))); } catch (java.lang.Exception e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, serverItf.getFcItfOwner(), "Cannot get the LifeCycleCoordinator interfaces"); } for (int j = 0; j < (clientItfs.length); ++j) { getCExtLifeCycleControllers(clientItfs[j], clccList, visited); } } }
getSExtLifeCycleControllers(itf, clccList, visited);
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#stopFc() */ public void stopFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { org.objectweb.fractal.api.Component id; try { id = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException(e, weaveableC, "Cannot stop component"); } org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] clccs = getFcLifeCycleControllers(id); stopFc(clccs); setFcState(false); }
public org.objectweb.fractal.api.Component newFcControllerInstantiation(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { Object ctrl = null; ic.controllers.add(ctrl = new juliac.generated.SCAContainerContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ComponentImpl()); org.objectweb.fractal.api.Component compctrl = (org.objectweb.fractal.api.Component)ctrl; ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositePropertyControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositeIntentControllerImpl()); return compctrl; }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#getFcLifeCycleControllers(org.objectweb.fractal.api.Component) */ public org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] getFcLifeCycleControllers(final org.objectweb.fractal.api.Component id) throws org.objectweb.fractal.api.control.IllegalLifeCycleException { java.util.List clccList = getFcInternalLifeCycleControllers(); java.lang.Object[] sItfs = id.getFcInterfaces(); java.util.Set visited = new java.util.HashSet(); for (int i = 0; i < (sItfs.length); ++i) { org.objectweb.fractal.api.Interface sItf = ((org.objectweb.fractal.api.Interface) (sItfs[i])); if (!(((org.objectweb.fractal.api.type.InterfaceType) (sItf.getFcItfType())).isFcClientItf())) { getSExtLifeCycleControllers(sItf, clccList, visited); } } org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[] clccs; clccs = new org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[clccList.size()]; return ((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[]) (clccList.toArray(clccs))); }
/** * @see org.objectweb.fractal.julia.UseComponentMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ public void initFcController(final org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { weaveableC = ((org.objectweb.fractal.api.Component) (ic.getInterface("component"))); weaveableOptC = weaveableC; initFcController$0(ic); }
public org.objectweb.fractal.api.Component newFcControllerInstantiation(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { Object ctrl = null; ic.controllers.add(ctrl = new juliac.generated.SCACompositeIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositePropertyControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ComponentImpl()); org.objectweb.fractal.api.Component compctrl = (org.objectweb.fractal.api.Component)ctrl; ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); return compctrl; }
public org.objectweb.fractal.api.Component newFcControllerInstantiation(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { Object ctrl = null; ic.controllers.add(ctrl = new juliac.generated.SCACompositeIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositePropertyControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ComponentImpl()); org.objectweb.fractal.api.Component compctrl = (org.objectweb.fractal.api.Component)ctrl; ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); return compctrl; }
public org.objectweb.fractal.api.Component newFcControllerInstantiation(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { Object ctrl = null; ic.controllers.add(ctrl = new juliac.generated.ComponentImpl()); org.objectweb.fractal.api.Component compctrl = (org.objectweb.fractal.api.Component)ctrl; ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositePropertyControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCACompositeIntentControllerImpl()); return compctrl; }