Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Generated by: org.objectweb.fractal.juliac.opt.oo.InitializerOOCtrlClassGenerator
   * on: Tue Apr 21 17:33:19 CEST 2009
   */
  
  package org.ow2.petals.se.sca.binding;
  
  
 implements org.objectweb.fractal.juliac.runtime.Factory {
 
     try {
       return new org.objectweb.fractal.julia.type.BasicComponentType( new org.objectweb.fractal.api.type.InterfaceType[]{new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-protocol","org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocol",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-factory","org.objectweb.fractal.bf.BindingFactory",true,false,false),} );
     }
       throw new org.objectweb.fractal.juliac.runtime.RuntimeException(ie);
     }
   }
 
   public Object getFcControllerDesc()  {
       return "primitive";
   }
 
   public Object getFcContentDesc()  {
       return "org.ow2.petals.se.sca.binding.ScaBindingJBI";
   }
 
   public Object newFcContent()  {
     Object content = new org.ow2.petals.se.sca.binding.ScaBindingJBI();
     return content;
   }
 
     Object content = newFcContent();
     return newFcInstance(content);
   }
 
     ifcontent!=null && !(content instanceof org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocol) ) {
       String msg = "org.ow2.petals.se.sca.binding.ScaBindingJBI should implement org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocol";
       throw new org.objectweb.fractal.api.factory.InstantiationException(msg);
     }
     ifcontent!=null && !(content instanceof org.objectweb.fractal.api.control.BindingController) ) {
       String msg = "org.ow2.petals.se.sca.binding.ScaBindingJBI should implement org.objectweb.fractal.api.control.BindingController";
       throw new org.objectweb.fractal.api.factory.InstantiationException(msg);
     }
     org.objectweb.fractal.julia.InitializationContext ic = new org.objectweb.fractal.julia.InitializationContext();
     ic.controllers = new java.util.ArrayList();
     ic.interfaces = new java.util.HashMap();
     ic.internalInterfaces = new java.util.HashMap();
     ic.interfaces.put("/content",content);
     ic.interfaces.put("/controllerDesc","primitive");
     ic.content = content;
     Object ctrl = null;
     org.objectweb.fractal.api.Component compctrl = null;
     ic.controllers.add(ctrl = new juliac.generated.ComponentImpl());
     ifctrl instanceof org.objectweb.fractal.api.Component) {compctrl=(org.objectweb.fractal.api.Component)ctrl;}
     ic.controllers.add(ctrl = new juliac.generated.ContainerBindingControllerImpl());
     ifctrl instanceof org.objectweb.fractal.api.Component) {compctrl=(org.objectweb.fractal.api.Component)ctrl;}
     ic.controllers.add(ctrl = new juliac.generated.SuperControllerImpl());
     ifctrl instanceof org.objectweb.fractal.api.Component) {compctrl=(org.objectweb.fractal.api.Component)ctrl;}
     ic.controllers.add(ctrl = new juliac.generated.LifeCycleControllerImpl());
     ifctrl instanceof org.objectweb.fractal.api.Component) {compctrl=(org.objectweb.fractal.api.Component)ctrl;}
     ic.controllers.add(ctrl = new juliac.generated.NameControllerImpl());
     ifctrl instanceof org.objectweb.fractal.api.Component) {compctrl=(org.objectweb.fractal.api.Component)ctrl;}
     Object intercept = null;
     intercept = 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.Componentproxy;
     ic.interfaces.put("component",proxy);
     forint i=0 ; i < ic.controllers.size() ; i++ ) {
       ctrl = ic.controllers.get(i);
       ifctrl instanceof org.objectweb.fractal.api.control.BindingController ) {
         break;
       }
       ctrl = null;
     }
     ifctrl == null ) {
       ifcontent 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 = 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);
     forint i=0 ; i < ic.controllers.size() ; i++ ) {
       ctrl = ic.controllers.get(i);
       ifctrl instanceof org.objectweb.fractal.julia.control.content.SuperControllerNotifier ) {
         break;
       }
       ctrl = null;
     }
     ifctrl == null ) {
       ifcontent 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 = 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);
    forint i=0 ; i < ic.controllers.size() ; i++ ) {
      ctrl = ic.controllers.get(i);
      ifctrl instanceof org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator ) {
        break;
      }
      ctrl = null;
    }
    ifctrl == null ) {
      ifcontent 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 = 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);
    forint i=0 ; i < ic.controllers.size() ; i++ ) {
      ctrl = ic.controllers.get(i);
      ifctrl instanceof org.objectweb.fractal.api.control.NameController ) {
        break;
      }
      ctrl = null;
    }
    ifctrl == null ) {
      ifcontent 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 = 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);
    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("binding-protocol","org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocol",false,false,false),new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-factory","org.objectweb.fractal.bf.BindingFactory",true,false,false),} );
    intercept = new org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocolInterceptorLC1a2eb783();
    ic.controllers.add(intercept);
    ((org.objectweb.fractal.julia.Interceptor)intercept).setFcItfDelegate(content);
    proxy = new org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocolFcItf(proxyForCompCtrl,"binding-protocol",new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-protocol","org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocol",false,false,false),false,intercept);
    ic.interfaces.put("binding-protocol",proxy);
    proxy = new org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocolFcItf(proxyForCompCtrl,"binding-protocol",new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-protocol","org.ow2.frascati.factory.core.instance.binding.ScaBindingProtocol",true,false,false),true,intercept);
    ic.internalInterfaces.put("binding-protocol",proxy);
    intercept = null;
    proxy = new org.objectweb.fractal.bf.BindingFactoryFcItf(proxyForCompCtrl,"binding-factory",new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-factory","org.objectweb.fractal.bf.BindingFactory",true,false,false),false,intercept);
    ic.interfaces.put("binding-factory",proxy);
    proxy = new org.objectweb.fractal.bf.BindingFactoryFcItf(proxyForCompCtrl,"binding-factory",new org.objectweb.fractal.julia.type.BasicInterfaceType("binding-factory","org.objectweb.fractal.bf.BindingFactory",false,false,false),true,intercept);
    ic.internalInterfaces.put("binding-factory",proxy);
    forint i=0 ; i < ic.controllers.size() ; i++ ) {
      ctrl = ic.controllers.get(i);
      ifctrl instanceof org.objectweb.fractal.julia.Controller ) {
        ((org.objectweb.fractal.julia.Controller)ctrl).initFcController(ic);
      }
    }
    return proxyForCompCtrl;
  }
New to GrepCode? Check out our FAQ X