/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#getFcInternalLifeCycleControllers() */ public java.util.List getFcInternalLifeCycleControllers() 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, "The OptimizedLifeCycleControllerMixin requires components to provide the Component interface"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(thisComponent); java.util.List result = new java.util.ArrayList(); for (int i = 0; i < (allSubComponents.size()); ++i) { org.objectweb.fractal.api.Component c = ((org.objectweb.fractal.api.Component) (allSubComponents.get(i))); try { c.getFcInterface("content-controller"); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { try { result.add(((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) (c.getFcInterface("lifecycle-controller")))); } catch (java.lang.Exception f) { try { result.add(c.getFcInterface("/lifecycle-coordinator")); } catch (org.objectweb.fractal.api.NoSuchInterfaceException ignored) { } } } } return result; }
/** * @see org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin#getFcInternalLifeCycleControllers() */ public java.util.List getFcInternalLifeCycleControllers() 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, "The OptimizedLifeCycleControllerMixin requires components to provide the Component interface"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(thisComponent); java.util.List result = new java.util.ArrayList(); for (int i = 0; i < (allSubComponents.size()); ++i) { org.objectweb.fractal.api.Component c = ((org.objectweb.fractal.api.Component) (allSubComponents.get(i))); try { c.getFcInterface("content-controller"); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { try { result.add(((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) (c.getFcInterface("lifecycle-controller")))); } catch (java.lang.Exception f) { try { result.add(c.getFcInterface("/lifecycle-coordinator")); } catch (org.objectweb.fractal.api.NoSuchInterfaceException ignored) { } } } } return result; }
/** * @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.TypeLifeCycleMixin#startFc() */ public void startFc() throws IllegalLifeCycleException { Component thisComponent; try { thisComponent = ((Component)(weaveableC.getFcInterface("component"))); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalLifeCycleException(e , weaveableC , "Cannot start the component"); } List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(thisComponent); for (int i = 0 ; i < (allSubComponents.size()) ; ++i) { Component subComponent = ((Component)(allSubComponents.get(i))); try { checkFcMandatoryInterfaces(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalLifeCycleException(e , weaveableC , "Cannot start the component"); } } startFc$0(); }
/** * @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.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.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.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Already a sub component"); } 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.content.ChainedIllegalContentException(e, weaveableC, subComponent, "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "A component cannot be a sub component of itself"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Already a sub component"); } 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.content.ChainedIllegalContentException(e, weaveableC, subComponent, "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "A component cannot be a sub component of itself"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @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.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Already a sub component"); } 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.content.ChainedIllegalContentException(e, weaveableC, subComponent, "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "A component cannot be a sub component of itself"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "Already a sub component"); } Component thisComponent; try { thisComponent = ((Component)(weaveableC.getFcInterface("component"))); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalContentException(e , weaveableC , subComponent , "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "A component cannot be a sub component of itself"); } List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0 ; i < (allSubComponents.size()) ; ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * Checks the mandatory client interfaces of the component (and of all its sub * components) and then calls the overriden method. * * @throws IllegalLifeCycleException if a problem occurs. */ public void startFc () throws IllegalLifeCycleException { // finds all the direct and indirect sub components of this component Component thisComponent; try { thisComponent = (Component)_this_weaveableC.getFcInterface("component"); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalLifeCycleException( e, _this_weaveableC, "Cannot start the component"); } List allSubComponents = Util.getAllSubComponents(thisComponent); // checks that the mandatory client interfaces of these components are bound for (int i = 0; i < allSubComponents.size(); ++i) { Component subComponent = (Component)allSubComponents.get(i); try { checkFcMandatoryInterfaces(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalLifeCycleException( e, _this_weaveableC, "Cannot start the component"); } } // calls the overriden method _super_startFc(); }
/** * Checks the mandatory client interfaces of the component (and of all its sub * components) and then calls the overriden method. * * @throws IllegalLifeCycleException if a problem occurs. */ public void startFc () throws IllegalLifeCycleException { // finds all the direct and indirect sub components of this component Component thisComponent; try { thisComponent = (Component)_this_weaveableC.getFcInterface("component"); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalLifeCycleException( e, _this_weaveableC, "Cannot start the component"); } List allSubComponents = Util.getAllSubComponents(thisComponent); // checks that the mandatory client interfaces of these components are bound for (int i = 0; i < allSubComponents.size(); ++i) { Component subComponent = (Component)allSubComponents.get(i); try { checkFcMandatoryInterfaces(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalLifeCycleException( e, _this_weaveableC, "Cannot start the component"); } } // calls the overriden method _super_startFc(); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleCoordinatorMixin#setFcState(boolean) */ public void setFcState(final boolean started) 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 set the lifecycle state"); } 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 c = ((org.objectweb.fractal.api.Component) (allSubComponents.get(i))); org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator lc; try { lc = ((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) (c.getFcInterface("lifecycle-controller"))); } catch (java.lang.Exception e) { try { lc = ((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) (c.getFcInterface("/lifecycle-coordinator"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException f) { continue; } } if (started) { lc.setFcStarted(); }else { lc.setFcStopped(); } } }
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleCoordinatorMixin#setFcState(boolean) */ public void setFcState(final boolean started) 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 set the lifecycle state"); } 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 c = ((org.objectweb.fractal.api.Component) (allSubComponents.get(i))); org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator lc; try { lc = ((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) (c.getFcInterface("lifecycle-controller"))); } catch (java.lang.Exception e) { try { lc = ((org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) (c.getFcInterface("/lifecycle-coordinator"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException f) { continue; } } if (started) { lc.setFcStarted(); }else { lc.setFcStopped(); } } }
List allSubComponents = Util.getAllSubComponents(subComponent); for (int i = 0; i < allSubComponents.size(); ++i) { if (allSubComponents.get(i).equals(thisComponent)) {
List allSubComponents = Util.getAllSubComponents(subComponent); for (int i = 0; i < allSubComponents.size(); ++i) { if (allSubComponents.get(i).equals(thisComponent)) {