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.SCAPrimitiveIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCABindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCALifeCycleControllerImpl()); ic.controllers.add(ctrl = new org.ow2.frascati.assembly.factory.processor.ScaComponentPropertyProcessorFCSCAContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitivePropertyControllerImpl()); 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.SuperControllerImpl()); 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.BasicLifeCycleControllerMixin#stopFc() */ public void stopFc() throws IllegalLifeCycleException { if ((fcState) == 2) { stopFc(new LifeCycleCoordinator[]{ getFcCoordinator() }); setFcState(false); } }
public void setClassLoader(final java.net.URLClassLoader arg0) { synchronized(_lc) { if(_lc.fcState != 2) _lc.incrementFcInvocationCounter(); else _lc.fcInvocationCounter++; synchronized(_lc) { if(_lc.fcState != 2) _lc.decrementFcInvocationCounter(); else _lc.fcInvocationCounter--;
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleControllerMixin#decrementFcInvocationCounter() */ public void decrementFcInvocationCounter() { --(fcInvocationCounter); if ((fcInvocationCounter) == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } }
/** * @see org.ow2.frascati.tinfi.control.content.UseSCAContentControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ public void initFcController(final org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { weaveableSCACC = ((org.ow2.frascati.tinfi.control.content.SCAExtendedContentController) (ic.interfaces.get(org.ow2.frascati.tinfi.api.control.SCAContentController.NAME))); initFcController$0(ic); }
/** * @see org.objectweb.fractal.julia.UseComponentMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$1(final InitializationContext ic) throws InstantiationException { weaveableC = ((Component)(ic.getInterface("component"))); weaveableOptC = weaveableC; initFcController$2(ic); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$0(final InitializationContext ic) throws InstantiationException { try { if (!((ic.getInterface("lifecycle-controller")) instanceof LifeCycleCoordinator)) { throw new Exception(); } } catch (Exception e) { try { ic.getInterface("/lifecycle-coordinator"); } catch (Exception f) { throw new ChainedInstantiationException(f , null , "The component must provide a LifeCycleCoordinator interface"); } } initFcController$1(ic); }
public java.lang.ClassLoader getClassLoader() { synchronized(_lc) { if(_lc.fcState != 2) _lc.incrementFcInvocationCounter(); else _lc.fcInvocationCounter++; synchronized(_lc) { if(_lc.fcState != 2) _lc.decrementFcInvocationCounter(); else _lc.fcInvocationCounter--;
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleControllerMixin#setFcStopping(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) */ public void setFcStopping(final org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator coordinator) throws org.objectweb.fractal.api.control.IllegalLifeCycleException { synchronized(this) { fcState = 1; fcCoordinator = coordinator; if ((fcInvocationCounter) == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } } }
/** * @see org.ow2.frascati.tinfi.control.content.UseSCAContentControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ public void initFcController(final InitializationContext ic) throws InstantiationException { weaveableSCACC = ((SCAExtendedContentController)(ic.interfaces.get(SCAContentController.NAME))); initFcController$0(ic); }
/** * @see org.objectweb.fractal.julia.UseComponentMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$1(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$2(ic); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$0(final org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { try { if (!((ic.getInterface("lifecycle-controller")) instanceof org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)) { throw new java.lang.Exception(); } } catch (java.lang.Exception e) { try { ic.getInterface("/lifecycle-coordinator"); } catch (java.lang.Exception f) { throw new org.objectweb.fractal.julia.factory.ChainedInstantiationException(f, null, "The component must provide a LifeCycleCoordinator interface"); } } initFcController$1(ic); }
public org.objectweb.fractal.api.Component getDomainComponent() { synchronized(_lc) { if(_lc.fcState != 2) _lc.incrementFcInvocationCounter(); else _lc.fcInvocationCounter++; synchronized(_lc) { if(_lc.fcState != 2) _lc.decrementFcInvocationCounter(); else _lc.fcInvocationCounter--;
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.SCAPrimitiveIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCABindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCALifeCycleControllerImpl()); ic.controllers.add(ctrl = new org.ow2.frascati.assembly.factory.processor.ScaWireProcessorFCSCAContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitivePropertyControllerImpl()); 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.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); return compctrl; }
/** * @see org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleControllerMixin#stopFc() */ public void stopFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { if ((fcState) == 2) { stopFc(new org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator[]{ getFcCoordinator() }); setFcState(false); } }
/** * @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.BasicLifeCycleControllerMixin#setFcStopping(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) */ public void setFcStopping(final LifeCycleCoordinator coordinator) throws IllegalLifeCycleException { synchronized(this) { fcState = 1; fcCoordinator = coordinator; if ((fcInvocationCounter) == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } } }
public org.objectweb.fractal.api.Component[] getComposites() { synchronized(_lc) { if(_lc.fcState != 2) _lc.incrementFcInvocationCounter(); else _lc.fcInvocationCounter++; synchronized(_lc) { if(_lc.fcState != 2) _lc.decrementFcInvocationCounter(); else _lc.fcInvocationCounter--;
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.SCAPrimitiveIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCABindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCALifeCycleControllerImpl()); ic.controllers.add(ctrl = new org.ow2.frascati.assembly.factory.processor.ScaComponentServiceProcessorFCSCAContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitivePropertyControllerImpl()); 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.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); return compctrl; }