/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.String,java.lang.reflect.Method) */ public void addFcIntentHandler(IntentHandler handler, String name, Method method) throws NoSuchMethodException, NoSuchInterfaceException, IllegalLifeCycleException { checkFcStopped(); addFcIntentHandler$0(handler ,name ,method); }
/** * @see org.ow2.frascati.tinfi.control.intent.SCAIntentControllerMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.Class,java.lang.String) */ private <T extends java.lang.annotation.Annotation> void addFcIntentHandler$0(IntentHandler handler, Class<T> annotcl, String value) { List<java.lang.reflect.Method> methods = getFcMatchingMethods(annotcl ,value); for (Method method : methods) { TinfiComponentInterceptor<?> tci = getFcInterceptor(method); Method m = getFcItfMethod(method); try { tci.addIntentHandler(handler ,m); } catch (NoSuchMethodException e) { throw new TinfiRuntimeException(e); } } }
/** * @see org.ow2.frascati.tinfi.control.intent.SCABasicIntentControllerMixin#removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler) */ private void removeFcIntentHandler$0(org.ow2.frascati.tinfi.api.IntentHandler handler) { java.util.Map<java.lang.String, org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>> interceptors = getFcInterceptors(); java.util.Collection<org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>> tcis = interceptors.values(); for (org.ow2.frascati.tinfi.TinfiComponentInterceptor<?> tci : tcis) { tci.removeIntentHandler(handler); } }
/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.String,java.lang.reflect.Method) */ public void removeFcIntentHandler(IntentHandler handler, String name, Method method) throws NoSuchMethodException, NoSuchInterfaceException, IllegalLifeCycleException { checkFcStopped(); removeFcIntentHandler$0(handler ,name ,method); }
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.ScaPropertyTypeJavaProcessorFCSCAContentControllerImpl()); 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; }
InterfaceType it = ((InterfaceType)(itf.getFcItfType())); String signature = it.getFcItfSignature(); Class<?> business = SCAPrimitiveIntentControllerImpl.loadFcClass(signature); Method[] ms = business.getMethods(); for (Method method : methods) { for (Method m : ms) { if (SCAPrimitiveIntentControllerImpl.areSame(m ,method)) { mtcis.put(method ,tci); mms.put(method ,m);
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 com.ebmwebsourcing.easycommons.sca.helper.util.HelloWorldSubChildImplFCSCAContentControllerImpl()); 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.intent.LifeCycleIntentMixin#removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.String,java.lang.reflect.Method) */ public void removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler handler, java.lang.String name, java.lang.reflect.Method method) throws java.lang.NoSuchMethodException, org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalLifeCycleException { checkFcStopped(); removeFcIntentHandler$0(handler, name, method); }
/** * @see org.ow2.frascati.tinfi.control.intent.SCAIntentControllerMixin#initFcMaps() */ private void initFcMaps() { mtcis = new java.util.HashMap<java.lang.reflect.Method, org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>>(); mms = new java.util.HashMap<java.lang.reflect.Method, java.lang.reflect.Method>(); java.lang.reflect.Method[] methods = cl.getMethods(); java.lang.Object[] itfs = weaveableOptC.getFcInterfaces(); for (java.lang.Object o : itfs) { org.objectweb.fractal.api.Interface itf = ((org.objectweb.fractal.api.Interface) (o)); java.lang.String name = itf.getFcItfName(); if ((name.endsWith("-controller")) || (name.equals("component"))) { continue; } java.lang.Object i = ((org.objectweb.fractal.julia.ComponentInterface) (itf)).getFcItfImpl(); org.ow2.frascati.tinfi.TinfiComponentInterceptor<?> tci = ((org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>) (i)); org.objectweb.fractal.api.type.InterfaceType it = ((org.objectweb.fractal.api.type.InterfaceType) (itf.getFcItfType())); java.lang.String signature = it.getFcItfSignature(); java.lang.Class<?> business = juliac.generated.SCAPrimitiveIntentControllerImpl.loadFcClass(signature); java.lang.reflect.Method[] ms = business.getMethods(); for (java.lang.reflect.Method method : methods) { for (java.lang.reflect.Method m : ms) { if (juliac.generated.SCAPrimitiveIntentControllerImpl.areSame(m, method)) { mtcis.put(method, tci); mms.put(method, m); } } } } }
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 com.ebmwebsourcing.easyviper.core.impl.engine.behaviour.functionnal.LoopBehaviourImplFCSCAContentControllerImpl()); 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.intent.LifeCycleIntentMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler) */ public void addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler handler) throws org.objectweb.fractal.api.control.IllegalLifeCycleException { checkFcStopped(); addFcIntentHandler$0(handler); }
/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler) */ public void removeFcIntentHandler(IntentHandler handler) throws IllegalLifeCycleException { checkFcStopped(); removeFcIntentHandler$0(handler); }
/** * @see org.ow2.frascati.tinfi.control.intent.SCAIntentControllerMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.Class<T>,java.lang.String) */ private <T extends java.lang.annotation.Annotation> void addFcIntentHandler$0(org.ow2.frascati.tinfi.api.IntentHandler handler, java.lang.Class<T> annotcl, java.lang.String value) { java.util.List<java.lang.reflect.Method> methods = getFcMatchingMethods(annotcl, value); for (java.lang.reflect.Method method : methods) { org.ow2.frascati.tinfi.TinfiComponentInterceptor<?> tci = getFcInterceptor(method); java.lang.reflect.Method m = getFcItfMethod(method); try { tci.addIntentHandler(handler, m); } catch (java.lang.NoSuchMethodException e) { throw new org.ow2.frascati.tinfi.TinfiRuntimeException(e); } } }
/** * @see org.ow2.frascati.tinfi.control.intent.SCABasicIntentControllerMixin#removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler) */ private void removeFcIntentHandler$0(IntentHandler handler) { Map<java.lang.String, org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>> interceptors = getFcInterceptors(); Collection<org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>> tcis = interceptors.values(); for (TinfiComponentInterceptor<?> tci : tcis) { tci.removeIntentHandler(handler); } }
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 com.ebmwebsourcing.easyviper.core.impl.engine.behaviour.functionnal.AssignBehaviourImplFCSCAContentControllerImpl()); 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.intent.LifeCycleIntentMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.Class,java.lang.String) */ public <T extends java.lang.annotation.Annotation> void addFcIntentHandler(IntentHandler handler, Class<T> annotcl, String value) throws IllegalLifeCycleException { checkFcStopped(); addFcIntentHandler$0(handler ,annotcl ,value); }
/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#removeFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler,java.lang.String) */ public void removeFcIntentHandler(IntentHandler handler, String name) throws NoSuchInterfaceException, IllegalLifeCycleException { checkFcStopped(); removeFcIntentHandler$0(handler ,name); }
/** * @see org.ow2.frascati.tinfi.control.intent.SCABasicIntentControllerMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler) */ private void addFcIntentHandler$0(IntentHandler handler) { Map<java.lang.String, org.ow2.frascati.tinfi.TinfiComponentInterceptor<?>> interceptors = getFcInterceptors(); for (String name : interceptors.keySet()) { if ((name.endsWith("-controller")) || (name.equals("component"))) { continue; } TinfiComponentInterceptor<?> tci = interceptors.get(name); tci.addIntentHandler(handler); } }
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 com.ebmwebsourcing.easyviper.core.impl.engine.behaviour.functionnal.EmptyBehaviourImplFCSCAContentControllerImpl()); 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.intent.LifeCycleIntentMixin#addFcIntentHandler(org.ow2.frascati.tinfi.api.IntentHandler) */ public void addFcIntentHandler(IntentHandler handler) throws IllegalLifeCycleException { checkFcStopped(); addFcIntentHandler$0(handler); }