/** * @see org.objectweb.fractal.julia.control.lifecycle.UseLifeCycleControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ public void initFcController(final org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { weaveableOptLC = ((org.objectweb.fractal.api.control.LifeCycleController) (ic.getOptionalInterface("lifecycle-controller"))); initFcController$0(ic); }
/** * @see org.ow2.frascati.tinfi.control.component.UseComponentContextMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$0(final InitializationContext ic) throws InstantiationException { weaveableCompCtx = ((ComponentContext)(ic.interfaces.get("sca-component-controller"))); initFcController$1(ic); }
/** * @see org.objectweb.fractal.julia.control.lifecycle.UseLifeCycleControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$1(final InitializationContext ic) throws InstantiationException { weaveableOptLC = ((LifeCycleController)(ic.getOptionalInterface("lifecycle-controller"))); initFcController$2(ic); }
/** * @see org.ow2.frascati.tinfi.control.content.TypeCheckSCAContentMixin#setFcContentClass(java.lang.Class<?>) */ private void setFcContentClass$0(java.lang.Class<?> c) throws org.objectweb.fractal.api.control.IllegalLifeCycleException, org.ow2.frascati.tinfi.api.control.ContentInstantiationException { org.objectweb.fractal.api.Type type = weaveableC.getFcType(); checkType(type, c); setFcContentClass$1(c); }
/** * @see org.ow2.frascati.tinfi.control.content.TypeCheckSCAContentMixin#setFcContent(java.lang.Object) */ private void setFcContent$0(java.lang.Object content) throws org.objectweb.fractal.api.control.IllegalLifeCycleException, org.ow2.frascati.tinfi.api.control.ContentInstantiationException { org.objectweb.fractal.api.Type type = weaveableC.getFcType(); java.lang.Class<?> c = content.getClass(); checkType(type, c); setFcContent$1(content); }
org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<?> ip = getInjectionPoint(name); if (ip == null) { return; for (java.lang.Object content : contents) { if (java.util.List.class.isAssignableFrom(iptype)) { java.util.List<org.oasisopen.sca.ServiceReference<?>> srs = ((java.util.List<org.oasisopen.sca.ServiceReference<?>>) (juliac.generated.SCAContentControllerImpl.get(ip, content))); for (org.oasisopen.sca.ServiceReference<?> sr : srs) { org.ow2.frascati.tinfi.oasis.ServiceReferenceImpl<?> sri = ((org.ow2.frascati.tinfi.oasis.ServiceReferenceImpl<?>) (sr)); juliac.generated.SCAContentControllerImpl.set(ip, content, srs); }else if (java.util.Map.class.isAssignableFrom(iptype)) { java.util.Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>> srs = ((java.util.Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>>) (juliac.generated.SCAContentControllerImpl.get(ip, content))); srs.put(name, value); juliac.generated.SCAContentControllerImpl.set(ip, content, srs); }else { juliac.generated.SCAContentControllerImpl.set(ip, content, value);
/** * @see org.ow2.frascati.tinfi.control.content.SCAContentControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$0(final org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { initFcController$1(ic); java.lang.Class<?> c = ((java.lang.Class<?>) (ic.content)); try { innerSetFcContentClass(c); } catch (org.ow2.frascati.tinfi.control.content.IllegalContentClassMetaData eccmd) { org.objectweb.fractal.api.factory.InstantiationException ie = new org.objectweb.fractal.api.factory.InstantiationException(eccmd.getMessage()); ie.initCause(eccmd); throw ie; } }
/** * @see org.ow2.frascati.tinfi.control.content.SCAContentControllerMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ public void initFcController(final InitializationContext ic) throws InstantiationException { initFcController$0(ic); Class<?> c = ((Class<?> )(ic.content)); try { innerSetFcContentClass(c); } catch (IllegalContentClassMetaData eccmd) { InstantiationException ie = new InstantiationException(eccmd.getMessage()); ie.initCause(eccmd); throw ie; } }
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.SCABindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCALifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitivePropertyControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitiveIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAContentControllerImpl()); return compctrl; }
/** * @see org.ow2.frascati.tinfi.control.content.SCAContentControllerMixin#setFcContentClass(java.lang.Class<?>) */ private void setFcContentClass$1(java.lang.Class<?> c) throws org.objectweb.fractal.api.control.IllegalLifeCycleException, org.ow2.frascati.tinfi.api.control.ContentInstantiationException { try { innerSetFcContentClass(c); } catch (org.ow2.frascati.tinfi.control.content.IllegalContentClassMetaData e) { throw new org.ow2.frascati.tinfi.api.control.ContentInstantiationException(e); } }
/** * @see org.ow2.frascati.tinfi.control.content.SCAContentControllerMixin#getPropertyValue(java.lang.String) */ public java.lang.Object getPropertyValue(java.lang.String name) { org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<?> ip = ccmd.props.get(name); if (ip == null) { return null; } java.lang.Object[] contents = sm.getFcCurrentContents(); if ((contents.length) == 0) { return null; } java.lang.Object value = juliac.generated.SCAContentControllerImpl.get(ip, contents[0]); for (int i = 1; i < (contents.length); i++) { java.lang.Object content = contents[i]; java.lang.Object v = juliac.generated.SCAContentControllerImpl.get(ip, content); if (v != value) { return null; } } return value; }
/** * @see org.ow2.frascati.tinfi.control.content.SCAContentControllerMixin#setPropertyValue(java.lang.String,java.lang.Object) */ public void setPropertyValue(java.lang.String name, java.lang.Object value) { org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<?> ip = ccmd.props.get(name); if (ip == null) { return; } java.lang.Object[] contents = sm.getFcCurrentContents(); for (java.lang.Object content : contents) { juliac.generated.SCAContentControllerImpl.set(ip, content, value); } }
/** * @see org.objectweb.fractal.julia.UseComponentMixin#initFcController(org.objectweb.fractal.julia.InitializationContext) */ private void initFcController$2(final InitializationContext ic) throws InstantiationException { weaveableC = ((Component)(ic.getInterface("component"))); weaveableOptC = weaveableC; initFcController$3(ic); }
org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<?> ip = getInjectionPoint(name); if (ip == null) { return; for (java.lang.Object content : contents) { if (java.util.List.class.isAssignableFrom(iptype)) { java.util.List<org.oasisopen.sca.ServiceReference<?>> srs = ((java.util.List<org.oasisopen.sca.ServiceReference<?>>) (juliac.generated.SCAContentControllerImpl.get(ip, content))); org.oasisopen.sca.ServiceReference<?> toBeRemoved = null; for (org.oasisopen.sca.ServiceReference<?> sr : srs) { juliac.generated.SCAContentControllerImpl.set(ip, content, srs); }else if (java.util.Map.class.isAssignableFrom(iptype)) { java.util.Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>> srs = ((java.util.Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>>) (juliac.generated.SCAContentControllerImpl.get(ip, content))); srs.remove(name); juliac.generated.SCAContentControllerImpl.set(ip, content, srs); }else { juliac.generated.SCAContentControllerImpl.set(ip, content, null);
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.SCAEasyBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitiveIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCALifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAContentControllerImpl()); 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.ow2.frascati.tinfi.control.content.SCAContentControllerMixin#setFcContentClass(java.lang.Class) */ public void setFcContentClass(Class<?> c) throws IllegalLifeCycleException, ContentInstantiationException { String state = weaveableOptLC.getFcState(); if (!(state.equals(LifeCycleController.STOPPED))) { String msg = "Component should be stopped"; throw new IllegalLifeCycleException(msg); } try { innerSetFcContentClass(c); } catch (IllegalContentClassMetaData e) { throw new ContentInstantiationException(e); } }
InjectionPoint ip = getInjectionPoint(name); if (ip == null) { return ; for (Object content : contents) { if (List.class.isAssignableFrom(iptype)) { List<org.oasisopen.sca.ServiceReference<?>> srs = ((List<org.oasisopen.sca.ServiceReference<?>> )(SCAContentControllerImpl.get(ip ,content))); for (ServiceReference<?> sr : srs) { ServiceReferenceImpl<?> sri = ((ServiceReferenceImpl<?> )(sr)); Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>> srs = ((Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>> )(SCAContentControllerImpl.get(ip ,content))); srs.put(name ,value); } else { SCAContentControllerImpl.set(ip ,content ,value);
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.SCAEasyBindingControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.ContentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAPrimitiveIntentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAComponentControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCALifeCycleControllerImpl()); ic.controllers.add(ctrl = new juliac.generated.SCAContentControllerImpl()); 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.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); }
InjectionPoint ip = getInjectionPoint(name); if (ip == null) { return ; for (Object content : contents) { if (List.class.isAssignableFrom(iptype)) { List<org.oasisopen.sca.ServiceReference<?>> srs = ((List<org.oasisopen.sca.ServiceReference<?>> )(SCAContentControllerImpl.get(ip ,content))); ServiceReference<?> toBeRemoved = null; for (ServiceReference<?> sr : srs) { Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>> srs = ((Map<java.lang.String, org.oasisopen.sca.ServiceReference<?>> )(SCAContentControllerImpl.get(ip ,content))); srs.remove(name); } else { SCAContentControllerImpl.set(ip ,content ,null);