Package org.apache.tuscany.sca.databinding

Examples of org.apache.tuscany.sca.databinding.Mediator


     * Test Setup.
     */
    @BeforeClass
    public static void setup() {
        // Create the factory
        Mediator mediator = EasyMock.createNiceMock(Mediator.class);
        DataBindingExtensionPoint dpep = new DefaultDataBindingExtensionPoint();
        EasyMock.expect(mediator.getDataBindings()).andReturn(dpep).anyTimes();
        EasyMock.replay(mediator);
        factory = new JavaPropertyValueObjectFactory(mediator);
       
        // Create the AssemblyFactory we should use
        assemblyFactory = new DefaultAssemblyFactory();
View Full Code Here


        XMLAdapterExtensionPoint xmlAdapterExtensionPoint = registry.getExtensionPoint(XMLAdapterExtensionPoint.class);
        xmlAdapterExtensionPoint.addAdapter(CallableReference.class, CallableReferenceXMLAdapter.class);
       
        FaultExceptionMapper faultExceptionMapper = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(FaultExceptionMapper.class);
       
        Mediator mediator = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(Mediator.class);

        Input2InputTransformer input2InputTransformer = new Input2InputTransformer();
        input2InputTransformer.setMediator(mediator);
        transformers.addTransformer(input2InputTransformer, true);
View Full Code Here

        }

        JavaInterfaceFactory javaFactory = factories.getFactory(JavaInterfaceFactory.class);

        DataBindingExtensionPoint dataBindings = registry.getExtensionPoint(DataBindingExtensionPoint.class);
        Mediator mediator = utilities.getUtility(Mediator.class);
        PropertyValueFactory factory = utilities.getUtility(PropertyValueFactory.class);
        factories.addFactory(factory);

        ContextFactoryExtensionPoint contextFactories = registry.getExtensionPoint(ContextFactoryExtensionPoint.class);
        ComponentContextFactory componentContextFactory = contextFactories.getFactory(ComponentContextFactory.class);
View Full Code Here

   
    private ScriptPropertyFactory propertyFactory;
   
    public ScriptImplementationProviderFactory(ExtensionPointRegistry extensionPoints) {
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        Mediator mediator = utilities.getUtility(Mediator.class);
        SimpleTypeMapper simpleTypeMapper = utilities.getUtility(SimpleTypeMapper.class);
        propertyFactory = new ScriptPropertyFactory(mediator, simpleTypeMapper);
    }
View Full Code Here

        XMLAdapterExtensionPoint xmlAdapterExtensionPoint = registry.getExtensionPoint(XMLAdapterExtensionPoint.class);
        xmlAdapterExtensionPoint.addAdapter(CallableReference.class, CallableReferenceXMLAdapter.class);
        xmlAdapterExtensionPoint.addAdapter(OMElement.class, OMElementXMLAdapter.class);
        FaultExceptionMapper faultExceptionMapper = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(FaultExceptionMapper.class);
       
        Mediator mediator = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(Mediator.class);

        Input2InputTransformer input2InputTransformer = new Input2InputTransformer();
        input2InputTransformer.setMediator(mediator);
        transformers.addTransformer(input2InputTransformer, true);
View Full Code Here

   
    private ScriptPropertyFactory propertyFactory;
   
    public ScriptImplementationProviderFactory(ExtensionPointRegistry extensionPoints) {
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        Mediator mediator = utilities.getUtility(Mediator.class);
        SimpleTypeMapper simpleTypeMapper = utilities.getUtility(SimpleTypeMapper.class);
        propertyFactory = new ScriptPropertyFactory(mediator, simpleTypeMapper);
    }
View Full Code Here

   
    private ScriptPropertyFactory propertyFactory;
   
    public ScriptImplementationProviderFactory(ExtensionPointRegistry extensionPoints) {
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        Mediator mediator = utilities.getUtility(Mediator.class);
        SimpleTypeMapper simpleTypeMapper = utilities.getUtility(SimpleTypeMapper.class);
        propertyFactory = new ScriptPropertyFactory(mediator, simpleTypeMapper);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.databinding.Mediator

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.