Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
juliac.generated.scaComposite Maven / Gradle / Ivy
/*
* Generated by: org.objectweb.fractal.juliac.opt.oo.MembraneInitializerOOCtrlClassGenerator
* on: Fri Jan 15 16:55:15 CET 2010
*/
package juliac.generated;
public class scaComposite
extends org.objectweb.fractal.juliac.runtime.MembraneInitializer {
public org.objectweb.fractal.julia.InitializationContext newFcInitializationContext(Object content) throws org.objectweb.fractal.api.factory.InstantiationException {
org.objectweb.fractal.julia.InitializationContext ic = initFcInitializationContext();
ic.internalInterfaces = new java.util.HashMap();
Object ctrl = null;
org.objectweb.fractal.api.Component compctrl = null;
ic.controllers.add(ctrl = new juliac.generated.ComponentImpl());
compctrl = (org.objectweb.fractal.api.Component)ctrl;
ic.controllers.add(ctrl = new juliac.generated.SCAComponentContextControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.CompositeBindingControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.ContentControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.CompositeLifeCycleControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.SCACompositeIntentControllerImpl());
ic.controllers.add(ctrl = new juliac.generated.SCACompositePropertyControllerImpl());
Object intercept = null;
intercept = new org.objectweb.fractal.api.ComponentInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(compctrl);
org.objectweb.fractal.api.Interface proxy = new org.objectweb.fractal.api.ComponentFcItf(compctrl,"component",new org.objectweb.fractal.julia.type.BasicInterfaceType("component","org.objectweb.fractal.api.Component",false,false,false),false,intercept);
org.objectweb.fractal.api.Component proxyForCompCtrl = (org.objectweb.fractal.api.Component) proxy;
ic.interfaces.put("component",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext");
}
}
intercept = new org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContextInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContextFcItf(proxyForCompCtrl,"sca-component-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("sca-component-controller","org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext",false,false,false),false,intercept);
ic.interfaces.put("sca-component-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.objectweb.fractal.api.control.BindingController ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.objectweb.fractal.api.control.BindingController) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.objectweb.fractal.api.control.BindingController");
}
}
intercept = new org.objectweb.fractal.api.control.BindingControllerInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.objectweb.fractal.api.control.BindingControllerFcItf(proxyForCompCtrl,"binding-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-controller","org.objectweb.fractal.api.control.BindingController",false,false,false),false,intercept);
ic.interfaces.put("binding-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.objectweb.fractal.api.control.ContentController ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.objectweb.fractal.api.control.ContentController) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.objectweb.fractal.api.control.ContentController");
}
}
intercept = new org.objectweb.fractal.api.control.ContentControllerInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.objectweb.fractal.api.control.ContentControllerFcItf(proxyForCompCtrl,"content-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("content-controller","org.objectweb.fractal.api.control.ContentController",false,false,false),false,intercept);
ic.interfaces.put("content-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.objectweb.fractal.julia.control.content.SuperControllerNotifier ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.objectweb.fractal.julia.control.content.SuperControllerNotifier) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.objectweb.fractal.julia.control.content.SuperControllerNotifier");
}
}
intercept = new org.objectweb.fractal.julia.control.content.SuperControllerNotifierInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.objectweb.fractal.julia.control.content.SuperControllerNotifierFcItf(proxyForCompCtrl,"super-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("super-controller","org.objectweb.fractal.julia.control.content.SuperControllerNotifier",false,false,false),false,intercept);
ic.interfaces.put("super-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator");
}
}
intercept = new org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinatorInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinatorFcItf(proxyForCompCtrl,"lifecycle-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("lifecycle-controller","org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator",false,false,false),false,intercept);
ic.interfaces.put("lifecycle-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.objectweb.fractal.api.control.NameController ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.objectweb.fractal.api.control.NameController) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.objectweb.fractal.api.control.NameController");
}
}
intercept = new org.objectweb.fractal.api.control.NameControllerInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.objectweb.fractal.api.control.NameControllerFcItf(proxyForCompCtrl,"name-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("name-controller","org.objectweb.fractal.api.control.NameController",false,false,false),false,intercept);
ic.interfaces.put("name-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.ow2.frascati.tinfi.control.intent.SCABasicIntentController ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.ow2.frascati.tinfi.control.intent.SCABasicIntentController) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.ow2.frascati.tinfi.control.intent.SCABasicIntentController");
}
}
intercept = new org.ow2.frascati.tinfi.control.intent.SCABasicIntentControllerInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.ow2.frascati.tinfi.control.intent.SCABasicIntentControllerFcItf(proxyForCompCtrl,"sca-intent-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("sca-intent-controller","org.ow2.frascati.tinfi.control.intent.SCABasicIntentController",false,false,false),false,intercept);
ic.interfaces.put("sca-intent-controller",proxy);
for( int i=0 ; i < ic.controllers.size() ; i++ ) {
ctrl = ic.controllers.get(i);
if( ctrl instanceof org.ow2.frascati.tinfi.control.property.SCAPropertyController ) {
break;
}
ctrl = null;
}
if( ctrl == null ) {
if( content instanceof org.ow2.frascati.tinfi.control.property.SCAPropertyController) {
ctrl = content;
}
else {
throw new org.objectweb.fractal.api.factory.InstantiationException("No such controller implementing org.ow2.frascati.tinfi.control.property.SCAPropertyController");
}
}
intercept = new org.ow2.frascati.tinfi.control.property.SCAPropertyControllerInterceptorIntent();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(ctrl);
proxy = new org.ow2.frascati.tinfi.control.property.SCAPropertyControllerFcItf(proxyForCompCtrl,"sca-property-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("sca-property-controller","org.ow2.frascati.tinfi.control.property.SCAPropertyController",false,false,false),false,intercept);
ic.interfaces.put("sca-property-controller",proxy);
return ic;
}
}