Package org.apache.tuscany.sca.interfacedef.java

Examples of org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory.createJavaInterface()


        ComponentReference ref = component.getReference(name);
        if (ref.getInterfaceContract() == null) {
            ExtensionPointRegistry epr = component.getComponentContext().getExtensionPointRegistry();
            FactoryExtensionPoint fep = epr.getExtensionPoint(FactoryExtensionPoint.class);
            JavaInterfaceFactory jif = fep.getFactory(JavaInterfaceFactory.class);
            JavaInterface javaIface = jif.createJavaInterface(typeClass);
            InterfaceContract interfaceContract = jif.createJavaInterfaceContract();
            interfaceContract.setInterface(javaIface);
            ref.setInterfaceContract(interfaceContract);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.