Package org.apache.tuscany.spi.model

Examples of org.apache.tuscany.spi.model.DataType


                                                              DataType targetDataType,
                                                              int size,
                                                              int index,
                                                              Transformer transformer,
                                                              Map<Class<?>, Object> metadata) {
        DataType sourceType =
            (index == 0) ? sourceDataType : new DataType<Object>(transformer.getSourceDataBinding(),
                                                                 Object.class, null);
        DataType targetType =
            (index == size - 1) ? targetDataType : new DataType<Object>(transformer.getTargetDataBinding(),
                                                                        Object.class, null);
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        TransformationContext context =
            new TransformationContextImpl(sourceType, targetType, classLoader, metadata);
View Full Code Here


        mediator.setDataBindingRegistry(dataBindingRegistry);
    }

    private TransformationContext createTransformationContext(Class sourceType, Class targetType) {
        TransformationContext context = new TransformationContextImpl();
        DataType sourceDataType = new DataType<Class>(sourceType, sourceType);
        DataType targetDataType = new DataType<Class>(targetType, targetType);
        context.setSourceDataType(sourceDataType);
        context.setTargetDataType(targetDataType);
        return context;
    }
View Full Code Here

        // TODO: this doesn't really test anything yet
        RMIReference ref = new RMIReference(null, null, null, null, null, null, null, null);
        ServiceContract contract = new JavaServiceContract();
        contract.setInterfaceClass(String.class);
        List l = new ArrayList();
        l.add(new DataType(null, null));
        DataType in = new DataType(null, l);
        Operation operation = new Operation(null, in, null, null);
        try {
            ref.createTargetInvoker(contract, operation);
        } catch (Exception e) {
            // expected
View Full Code Here

TOP

Related Classes of org.apache.tuscany.spi.model.DataType

Copyright © 2018 www.massapicom. 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.