Package org.apache.tuscany.sca.core

Examples of org.apache.tuscany.sca.core.DefaultExtensionPointRegistry


     * @see junit.framework.TestCase#setUp()
     */
    @Override
    protected void setUp() throws Exception {
        super.setUp();
        new SDODataBinding(new DefaultExtensionPointRegistry());
        helperContext = HelperProvider.getDefaultContext();
        SdoFactory.INSTANCE.register(helperContext);
       
        context = new TransformationContextImpl();
        context.setSourceDataType(getSourceDataType());
View Full Code Here


     */
    // FOR Test only
    public DefaultValidatingXMLInputFactory(XMLInputFactory inputFactory, ValidationSchemaExtensionPoint schemas) {
        this.inputFactory = inputFactory;
        this.schemas = schemas;
        this.registry = new DefaultExtensionPointRegistry();
    }
View Full Code Here

    private HelperContext context;
    private SDOWrapperHandler handler;

    @Override
    public void setUp() throws Exception {
      new SDODataBinding(new DefaultExtensionPointRegistry());
        context = SDOUtil.createHelperContext();
        handler = new SDOWrapperHandler();
    }
View Full Code Here

    private ExtensionPointRegistry registry;
    // private JAXWSJavaInterfaceProcessor interfaceProcessor;

    @Before
    public void setUp() throws Exception {
        registry = new DefaultExtensionPointRegistry();
//        DataBindingExtensionPoint db = new DefaultDataBindingExtensionPoint(registry);
//        XMLAdapterExtensionPoint xa = new DefaultXMLAdapterExtensionPoint();
        // interfaceProcessor = new JAXWSJavaInterfaceProcessor(db, new JAXWSFaultExceptionMapper(db, xa), xa);
    }
View Full Code Here

    private static StAXArtifactProcessor<Object> staxProcessor;
    private static ProcessorContext context;
   
    @BeforeClass
    public static void setUp() throws Exception {
        DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry();
        context = new ProcessorContext(extensionPoints);
        inputFactory = XMLInputFactory.newInstance();
        StAXArtifactProcessorExtensionPoint staxProcessors = new DefaultStAXArtifactProcessorExtensionPoint(extensionPoints);
        staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, null);
    }
View Full Code Here

                for (Annotation a : m.getAnnotations()) {
                    System.out.println(a);
                }
            }
        }
        JAXBContext context = new JAXBContextHelper(new DefaultExtensionPointRegistry()).createJAXBContext(classes.toArray(new Class<?>[classes.size()]));
        for (Class<?> cls : classes) {
            Object obj = cls.newInstance();
            StringWriter sw = new StringWriter();
            context.createMarshaller().marshal(obj, sw);
            // System.out.println(sw.toString());
View Full Code Here

    }

    @Test
    public void testGenerateSchema() throws Exception {
        List<Class<?>> classes = new WrapperBeanGenerator().generateWrapperBeans(TestInterface.class);
        JAXBContext context = new JAXBContextHelper(new DefaultExtensionPointRegistry()).createJAXBContext(classes.toArray(new Class<?>[classes.size()]));
        Map<String, String> results = JAXBTypeHelper.generateSchema(context);
        for (String xsd : results.values()) {
            System.out.println(xsd);
        }
    }
View Full Code Here

    private static StAXArtifactProcessor<Object> staxProcessor;
    private static ProcessorContext context;

    @BeforeClass
    public static void setUp() throws Exception {
        DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry();
        context = new ProcessorContext(extensionPoints);
        inputFactory = XMLInputFactory.newInstance();
        outputFactory = XMLOutputFactory.newInstance();
        StAXArtifactProcessorExtensionPoint staxProcessors = new DefaultStAXArtifactProcessorExtensionPoint(extensionPoints);
        staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, outputFactory);
View Full Code Here

        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(registry);
        domainRegistryFactory.getEndpointRegistry(properties.getProperty("reguri"), properties.getProperty("defaultDomainName"));
    }

    protected ExtensionPointRegistry createExtensionPointRegistry() {
        return new DefaultExtensionPointRegistry();
    }
View Full Code Here

    protected void init(Properties config) {
        if (config == null) {
            config = new Properties();
        }
        this.extensionPointRegistry = new DefaultExtensionPointRegistry();
        extensionPointRegistry.start();

        FactoryExtensionPoint modelFactories = extensionPointRegistry.getExtensionPoint(FactoryExtensionPoint.class);
        this.assemblyFactory = new RuntimeAssemblyFactory(extensionPointRegistry);
        modelFactories.addFactory(assemblyFactory);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.DefaultExtensionPointRegistry

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.