
org.objectweb.fractal.bf.connectors.BasicClientImplFCprimitiveFC92ac1dbe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fractal-bf-testing-fixtures-juliac Show documentation
Show all versions of fractal-bf-testing-fixtures-juliac Show documentation
Integration tests fixtures with Juliac
The newest version!
/*
* Generated by: org.objectweb.fractal.juliac.opt.oo.InitializerOOCtrlClassGenerator
* on: Wed Mar 20 11:44:57 CET 2013
*/
package org.objectweb.fractal.bf.connectors;
public class BasicClientImplFCprimitiveFC92ac1dbe
extends juliac.generated.primitive
implements org.objectweb.fractal.juliac.runtime.Factory {
public org.objectweb.fractal.api.Type getFcInstanceType() {
try
{
return new org.objectweb.fractal.julia.type.BasicComponentType( new org.objectweb.fractal.api.type.InterfaceType[]{new org.objectweb.fractal.julia.type.BasicInterfaceType("service","org.objectweb.fractal.bf.connectors.Service",true,true,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("weirdService","org.objectweb.fractal.bf.connectors.weird.ServiceWithWeirdParams",true,true,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("service0","org.objectweb.fractal.bf.connectors.Service",false,false,false),} );
}
catch ( org.objectweb.fractal.api.factory.InstantiationException ie )
{
throw new org.objectweb.fractal.juliac.runtime.RuntimeException(ie);
}
}
public Object getFcControllerDesc() {
return "primitive";
}
public Object getFcContentDesc() {
return "org.objectweb.fractal.bf.connectors.BasicClientImpl";
}
public Object newFcContent() throws org.objectweb.fractal.api.factory.InstantiationException {
try {
Object content = new org.objectweb.fractal.bf.connectors.BasicClientImpl();
return content;
}
catch( Throwable t ) {
throw new org.objectweb.fractal.julia.factory.ChainedInstantiationException(t,null,"");
}
}
public org.objectweb.fractal.api.Component newFcInstance() throws org.objectweb.fractal.api.factory.InstantiationException {
Object content = newFcContent();
return newFcInstance(content);
}
public org.objectweb.fractal.api.Component newFcInstance(Object content) throws org.objectweb.fractal.api.factory.InstantiationException {
if ( content!=null && !(content instanceof org.objectweb.fractal.bf.connectors.Service) )
{
String msg = "org.objectweb.fractal.bf.connectors.BasicClientImpl should implement org.objectweb.fractal.bf.connectors.Service";
throw new org.objectweb.fractal.api.factory.InstantiationException(msg);
}
if ( content!=null && !(content instanceof org.objectweb.fractal.api.control.BindingController) )
{
String msg = "org.objectweb.fractal.bf.connectors.BasicClientImpl should implement org.objectweb.fractal.api.control.BindingController";
throw new org.objectweb.fractal.api.factory.InstantiationException(msg);
}
org.objectweb.fractal.julia.InitializationContext ic = newFcInitializationContext(content);
ic.interfaces.put("/content",content);
ic.interfaces.put("/controllerDesc","primitive");
ic.content = content;
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("component","org.objectweb.fractal.api.Component",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("super-controller","org.objectweb.fractal.julia.control.content.SuperControllerNotifier",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("name-controller","org.objectweb.fractal.api.control.NameController",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("service","org.objectweb.fractal.bf.connectors.Service",true,true,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("weirdService","org.objectweb.fractal.bf.connectors.weird.ServiceWithWeirdParams",true,true,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("service0","org.objectweb.fractal.bf.connectors.Service",false,false,false),} );
intercept = null;
proxy = new org.objectweb.fractal.bf.connectors.ServiceFcItf(proxyForCompCtrl,"service",new org.objectweb.fractal.julia.type.BasicInterfaceType("service","org.objectweb.fractal.bf.connectors.Service",true,true,false),false,intercept);
ic.interfaces.put("service",proxy);
intercept = null;
proxy = new org.objectweb.fractal.bf.connectors.weird.ServiceWithWeirdParamsFcItf(proxyForCompCtrl,"weirdService",new org.objectweb.fractal.julia.type.BasicInterfaceType("weirdService","org.objectweb.fractal.bf.connectors.weird.ServiceWithWeirdParams",true,true,false),false,intercept);
ic.interfaces.put("weirdService",proxy);
intercept = new org.objectweb.fractal.bf.connectors.ServiceInterceptorLC1a2eb783();
ic.controllers.add(intercept);
((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(content);
proxy = new org.objectweb.fractal.bf.connectors.ServiceFcItf(proxyForCompCtrl,"service0",new org.objectweb.fractal.julia.type.BasicInterfaceType("service0","org.objectweb.fractal.bf.connectors.Service",false,false,false),false,intercept);
ic.interfaces.put("service0",proxy);
initFcController(ic);
return proxyForCompCtrl;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy