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

org.ow2.petals.microkernel.communication.sharedarea.StandaloneSharedAreaImplFCprimitiveFC22b82d1b Maven / Gradle / Ivy

There is a newer version: 4.3.0
Show newest version
/*
 * Generated by: org.objectweb.fractal.juliac.fraclet.InitializerOOCtrlClassGenerator
 * on: Wed Sep 21 08:11:47 GMT+01:00 2016
 */

package org.ow2.petals.microkernel.communication.sharedarea;


public class StandaloneSharedAreaImplFCprimitiveFC22b82d1b
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.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaService",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("configuration","org.ow2.petals.microkernel.api.configuration.ConfigurationService",true,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.ow2.petals.microkernel.communication.sharedarea.StandaloneSharedAreaImpl";
  }

  public Object newFcContent() throws org.objectweb.fractal.api.factory.InstantiationException  {
    try
    {
    Object content = new org.ow2.petals.microkernel.communication.sharedarea.StandaloneSharedAreaImpl();
    return content;
    }
    catch ( java.lang.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();
    org.objectweb.fractal.api.Component instance = newFcInstance(content);
    try
    {
    }
    catch ( java.lang.Throwable t )
    {
      throw new org.objectweb.fractal.julia.factory.ChainedInstantiationException (t,null,"");
    }
    return instance;
  }

  public org.objectweb.fractal.api.Component newFcInstance(Object content) throws org.objectweb.fractal.api.factory.InstantiationException  {
    if ( content!=null && !(content instanceof org.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaService) )
    {
      String msg = "org.ow2.petals.microkernel.communication.sharedarea.StandaloneSharedAreaImpl should implement org.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaService";
      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.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaService",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("configuration","org.ow2.petals.microkernel.api.configuration.ConfigurationService",true,false,false),} );
    intercept = new org.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaServiceInterceptorLC1a2eb783();
    ic.controllers.add(intercept);
    ((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(content);
    proxy = new org.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaServiceFcItf(proxyForCompCtrl,"service",new org.objectweb.fractal.julia.type.BasicInterfaceType("service","org.ow2.petals.microkernel.api.communication.sharedarea.SharedAreaService",false,false,false),false,intercept);
    ic.interfaces.put("service",proxy);
    intercept = null;
    proxy = new org.ow2.petals.microkernel.api.configuration.ConfigurationServiceFcItf(proxyForCompCtrl,"configuration",new org.objectweb.fractal.julia.type.BasicInterfaceType("configuration","org.ow2.petals.microkernel.api.configuration.ConfigurationService",true,false,false),false,intercept);
    ic.interfaces.put("configuration",proxy);
    initFcController(ic);
    return proxyForCompCtrl;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy