Package org.apache.cxf.aegis.type

Examples of org.apache.cxf.aegis.type.Configuration


    public void setUp() throws Exception {
        super.setUp();

        tm = new CustomTypeMapping();
        Java5TypeCreator creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here


        super.setUp();

        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setNextCreator(new DefaultTypeCreator());
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

    }
    @Test
    public void testNillableIntMinOccurs1() throws Exception {
        reg = new DefaultTypeMappingRegistry();

        Configuration config = reg.getConfiguration();
        config.setDefaultMinOccurs(1);
        config.setDefaultNillable(false);

        reg.createDefaultMappings();
        mapping = reg.createTypeMapping(true);

        BeanType type = (BeanType)mapping.getTypeCreator().createType(IntBean.class);
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();

        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

    @Test
    public void testCollectionDTO() {
        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);

        Type dto = creator.createType(CollectionDTO.class);
        Set deps = dto.getDependencies();
View Full Code Here

    @Test
    public void testObjectDTO() {
        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);

        Type dto = creator.createType(ObjectDTO.class);
        Set deps = dto.getDependencies();
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();

        tm = new CustomTypeMapping();
        Java5TypeCreator creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

    }
    @Test
    public void testNillableIntMinOccurs1() throws Exception {
        reg = new DefaultTypeMappingRegistry();

        Configuration config = reg.getConfiguration();
        config.setDefaultMinOccurs(1);
        config.setDefaultNillable(false);

        reg.createDefaultMappings();
        mapping = reg.createTypeMapping(true);

        BeanType type = (BeanType)mapping.getTypeCreator().createType(IntBean.class);
View Full Code Here

        JaxWsServerFactoryBean serviceFactory = new JaxWsServerFactoryBean();
        serviceFactory.getServiceFactory().setDataBinding(binder);

        DefaultTypeMappingRegistry tmr = (DefaultTypeMappingRegistry)binder.getTypeMappingRegistry();
        Configuration configuration = tmr.getConfiguration();
        configuration.setDefaultMinOccurs(1);
        configuration.setDefaultNillable(false);

        // Create a properties hashmap
        Map<String, Object> props = new HashMap<String, Object>();

        // Enable the writing of xsi:type attributes
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();

        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.aegis.type.Configuration

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.