
org.objectweb.fractal.bf.connectors.EnclosingService 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.adl.stati.ComponentFactoryClassGenerator on: Wed Mar 20 11:44:57 CET 2013
*/
package org.objectweb.fractal.bf.connectors;
import org.objectweb.fractal.api.Component;
import org.objectweb.fractal.util.Fractal;
public class EnclosingService
implements org.objectweb.fractal.api.factory.Factory {
public Object getFcContentDesc() {
throw new java.lang.UnsupportedOperationException();
}
public Object getFcControllerDesc() {
throw new java.lang.UnsupportedOperationException();
}
private void newFcInstance0() throws java.lang.Exception {
C0 = new org.objectweb.fractal.bf.connectors.BasicServiceImplFCprimitiveFCa34ec92d().newFcInstance();
Fractal.getNameController(C0).setFcName("service");
C1 = new juliac.generated.compositeFC1dab967().newFcInstance();
Fractal.getNameController(C1).setFcName("org.objectweb.fractal.bf.connectors.EnclosingService");
Fractal.getContentController(C1).addFcSubComponent(C0);
Fractal.getBindingController(C1).bindFc("service", C0.getFcInterface("service"));
}
public Component newFcInstance() throws org.objectweb.fractal.api.factory.InstantiationException {
try
{
newFcInstance0();
}
catch ( org.objectweb.fractal.api.factory.InstantiationException e )
{
throw e;
}
catch ( java.lang.RuntimeException e )
{
throw (RuntimeException) e;
}
catch ( java.lang.Exception e )
{
throw new org.objectweb.fractal.julia.factory.ChainedInstantiationException(e,null,e.getClass().getName()+": "+e.getMessage());
}
return C1;
}
private org.objectweb.fractal.api.Component C0;
private org.objectweb.fractal.api.Component C1;
public org.objectweb.fractal.api.Type getFcInstanceType() {
try
{
// --------------------------------------------------
org.objectweb.fractal.api.type.ComponentType ct = 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",false,false,false),} );
// --------------------------------------------------
return ct;
}
catch ( org.objectweb.fractal.api.factory.InstantiationException e )
{
throw new org.objectweb.fractal.juliac.runtime.RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy