public void initFcController(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException { super.initFcController(ic); Object olc = ic.getInterface("lifecycle-controller"); if (!(olc instanceof juliac.generated.SCALifeCycleControllerImpl)) { while (olc instanceof org.objectweb.fractal.julia.Interceptor) { olc = ((org.objectweb.fractal.julia.Interceptor) olc).getFcItfDelegate(); } } _lc = (juliac.generated.SCALifeCycleControllerImpl) olc; initIntentHandlersMap(METHODS); }
public org.objectweb.fractal.api.Component newFcInstance(Object content) throws org.objectweb.fractal.api.factory.InstantiationException { org.objectweb.fractal.julia.InitializationContext ic = newFcInitializationContext(content); ic.content = eu.choreos.service.Orchestrator.class; org.objectweb.fractal.api.Interface proxy; Object intercept; org.objectweb.fractal.api.Component proxyForCompCtrl = (org.objectweb.fractal.api.Component) ic.interfaces.get("component"); ic.type = new org.objectweb.fractal.julia.type.BasicComponentType( new org.objectweb.fractal.api.type.InterfaceType[] { new org.objectweb.fractal.julia.type.BasicInterfaceType( "sca-intent-controller", "org.ow2.frascati.tinfi.api.control.SCAIntentController", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "sca-component-controller", "org.oasisopen.sca.ComponentContext", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "binding-controller", "org.objectweb.fractal.api.control.BindingController", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "lifecycle-controller", "org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "/sca-content-controller", "org.ow2.frascati.tinfi.control.content.SCAExtendedContentController", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "sca-property-controller", "org.ow2.frascati.tinfi.api.control.SCAPropertyController", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "component", "org.objectweb.fractal.api.Component", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "super-controller", "org.objectweb.fractal.julia.control.content.SuperControllerNotifier", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "name-controller", "org.objectweb.fractal.api.control.NameController", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "flightFinder", "eu.choreos.api.FlightFinder", false, false, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "webTrip", "com.safetrip.service.WebTrip", true, true, false), new org.objectweb.fractal.julia.type.BasicInterfaceType( "carParkReservation", "eu.choreos.api.CarParkReservationPortType", true, true, false), }); intercept = new eu.choreos.api.FlightFinderInterceptorSCALCb56bb98SCACCIntent(); ic.controllers.add(intercept); ((org.objectweb.fractal.julia.Interceptor) intercept).setFcItfDelegate(content); proxy = new eu.choreos.api.FlightFinderFcInItf( proxyForCompCtrl, "flightFinder", new org.objectweb.fractal.julia.type.BasicInterfaceType( "flightFinder", "eu.choreos.api.FlightFinder", false, false, false), false, intercept); ic.interfaces.put("flightFinder", proxy); ((org.ow2.frascati.tinfi.TinfiComponentInterceptor) intercept).setFcItf(proxy); intercept = new com.safetrip.service.WebTripInterceptorSCAIntent(); ic.controllers.add(intercept); proxy = new com.safetrip.service.WebTripFcOutItf( proxyForCompCtrl, "webTrip", new org.objectweb.fractal.julia.type.BasicInterfaceType( "webTrip", "com.safetrip.service.WebTrip", true, true, false), false, intercept); ic.interfaces.put("webTrip", proxy); ((org.ow2.frascati.tinfi.TinfiComponentInterceptor) intercept).setFcItf(proxy); intercept = new eu.choreos.api.CarParkReservationPortTypeInterceptorSCAIntent(); ic.controllers.add(intercept); proxy = new eu.choreos.api.CarParkReservationPortTypeFcOutItf( proxyForCompCtrl, "carParkReservation", new org.objectweb.fractal.julia.type.BasicInterfaceType( "carParkReservation", "eu.choreos.api.CarParkReservationPortType", true, true, false), false, intercept); ic.interfaces.put("carParkReservation", proxy); ((org.ow2.frascati.tinfi.TinfiComponentInterceptor) intercept).setFcItf(proxy); initFcController(ic); return proxyForCompCtrl; }