All Downloads are FREE. Search and download functionalities are using the official Maven repository.

juliac.FactoryImplFCmPrimitiveFC44e81272 Maven / Gradle / Ivy

The newest version!
/*
 * Generated by: org.objectweb.fractal.juliac.opt.comp.InitializermCompCtrlClassGenerator
 * on: Tue Oct 26 19:09:30 CEST 2021
 */

package juliac;

public class FactoryImplFCmPrimitiveFC44e81272
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("//factory","org.objectweb.fractal.julia.factory.Template",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("///template","org.objectweb.fractal.julia.factory.Template",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("//component","org.objectweb.fractal.api.Component",true,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("//name-controller","org.objectweb.fractal.api.control.NameController",true,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("///cloneable-attribute-controller","org.objectweb.fractal.julia.control.attribute.CloneableAttributeController",true,true,false),} );
    }
    catch ( org.objectweb.fractal.api.factory.InstantiationException ie )
    {
      throw new org.objectweb.fractal.juliac.runtime.RuntimeException(ie);
    }
  }

  public Object getFcControllerDesc()  {
      return "mPrimitive";
  }

  public Object getFcContentDesc()  {
      return "juliac.FactoryImpl";
  }

  public Object newFcContent() throws org.objectweb.fractal.api.factory.InstantiationException  {
    Object content = new juliac.FactoryImpl();
    return content;
  }

  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  {
    org.objectweb.fractal.koch.factory.MPrimitiveImpl mcomp = new org.objectweb.fractal.koch.factory.MPrimitiveImpl(getFcInstanceType(),content);
    java.util.Map fcInterfaces = new java.util.HashMap();
    org.objectweb.fractal.api.Interface proxy = null;
    proxy = new juliac.org.objectweb.fractal.api.ComponentFcItf(mcomp,"component",new org.objectweb.fractal.julia.type.BasicInterfaceType("component","org.objectweb.fractal.api.Component",false,false,false),false,mcomp);
    fcInterfaces.put("component",proxy);
    proxy = new juliac.org.objectweb.fractal.api.control.BindingControllerFcItf(mcomp,"binding-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-controller","org.objectweb.fractal.api.control.BindingController",false,false,false),false,mcomp);
    fcInterfaces.put("binding-controller",proxy);
    proxy = new juliac.org.objectweb.fractal.api.control.NameControllerFcItf(mcomp,"name-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("name-controller","org.objectweb.fractal.api.control.NameController",false,false,false),false,mcomp);
    fcInterfaces.put("name-controller",proxy);
    proxy = new juliac.org.objectweb.fractal.julia.control.content.SuperControllerNotifierFcItf(mcomp,"super-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("super-controller","org.objectweb.fractal.julia.control.content.SuperControllerNotifier",false,false,false),false,mcomp);
    fcInterfaces.put("super-controller",proxy);
    proxy = new juliac.org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinatorFcItf(mcomp,"lifecycle-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("lifecycle-controller","org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator",false,false,false),false,mcomp);
    fcInterfaces.put("lifecycle-controller",proxy);
    org.objectweb.fractal.julia.InitializationContext ic = new org.objectweb.fractal.julia.InitializationContext();
    ic.interfaces = new java.util.HashMap();
    ic.interfaces.put("component",mcomp);
    ic.interfaces.put("lifecycle-controller",mcomp);
    proxy = new juliac.org.objectweb.fractal.julia.factory.TemplateFcItf(mcomp,"//factory",new org.objectweb.fractal.julia.type.BasicInterfaceType("//factory","org.objectweb.fractal.julia.factory.Template",false,false,false),false,content);
    fcInterfaces.put("//factory",proxy);
    org.objectweb.fractal.julia.Interceptor intercept = new juliac.org.objectweb.fractal.julia.factory.TemplateInterceptorLCba0bb7c3();
    intercept.initFcController(ic);
    ((org.objectweb.fractal.julia.ComponentInterface)proxy).setFcItfImpl(intercept);
    intercept.setFcItfDelegate(content);
    proxy = new juliac.org.objectweb.fractal.julia.factory.TemplateFcItf(mcomp,"///template",new org.objectweb.fractal.julia.type.BasicInterfaceType("///template","org.objectweb.fractal.julia.factory.Template",false,false,false),false,content);
    fcInterfaces.put("///template",proxy);
    intercept = new juliac.org.objectweb.fractal.julia.factory.TemplateInterceptorLCba0bb7c3();
    intercept.initFcController(ic);
    ((org.objectweb.fractal.julia.ComponentInterface)proxy).setFcItfImpl(intercept);
    intercept.setFcItfDelegate(content);
    proxy = new juliac.org.objectweb.fractal.api.ComponentFcItf(mcomp,"//component",new org.objectweb.fractal.julia.type.BasicInterfaceType("//component","org.objectweb.fractal.api.Component",true,false,false),false,null);
    fcInterfaces.put("//component",proxy);
    proxy = new juliac.org.objectweb.fractal.api.control.NameControllerFcItf(mcomp,"//name-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("//name-controller","org.objectweb.fractal.api.control.NameController",true,false,false),false,null);
    fcInterfaces.put("//name-controller",proxy);
    proxy = new juliac.org.objectweb.fractal.julia.control.attribute.CloneableAttributeControllerFcItf(mcomp,"///cloneable-attribute-controller",new org.objectweb.fractal.julia.type.BasicInterfaceType("///cloneable-attribute-controller","org.objectweb.fractal.julia.control.attribute.CloneableAttributeController",true,true,false),false,null);
    fcInterfaces.put("///cloneable-attribute-controller",proxy);
    mcomp.setFcInterfaces(fcInterfaces);
    return mcomp;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy