Search in sources :

Example 1 with XMLTypeCreator

use of org.apache.cxf.aegis.type.XMLTypeCreator in project cxf by apache.

the class ConfigurationTest method setUp.

@Before
public void setUp() throws Exception {
    super.setUp();
    AegisContext context = new AegisContext();
    config = new TypeCreationOptions();
    context.setTypeCreationOptions(config);
    context.initialize();
    XMLTypeCreator creator = new XMLTypeCreator();
    creator.setConfiguration(config);
    Java5TypeCreator next = new Java5TypeCreator();
    next.setConfiguration(config);
    creator.setNextCreator(next);
    tm = (DefaultTypeMapping) context.getTypeMapping();
    tm.setTypeCreator(creator);
}
Also used : AegisContext(org.apache.cxf.aegis.AegisContext) XMLTypeCreator(org.apache.cxf.aegis.type.XMLTypeCreator) TypeCreationOptions(org.apache.cxf.aegis.type.TypeCreationOptions) Before(org.junit.Before)

Example 2 with XMLTypeCreator

use of org.apache.cxf.aegis.type.XMLTypeCreator in project cxf by apache.

the class NoNamespaceAegisElementProvider method createRootTypeCreator.

protected AbstractTypeCreator createRootTypeCreator(TypeCreationOptions options) {
    AbstractTypeCreator creator = new XMLTypeCreator();
    creator.setConfiguration(options);
    return creator;
}
Also used : XMLTypeCreator(org.apache.cxf.aegis.type.XMLTypeCreator) AbstractTypeCreator(org.apache.cxf.aegis.type.AbstractTypeCreator)

Example 3 with XMLTypeCreator

use of org.apache.cxf.aegis.type.XMLTypeCreator in project cxf by apache.

the class AegisContext method createRootTypeCreator.

protected AbstractTypeCreator createRootTypeCreator() {
    AbstractTypeCreator creator = new XMLTypeCreator();
    creator.setConfiguration(getTypeCreationOptions());
    return creator;
}
Also used : XMLTypeCreator(org.apache.cxf.aegis.type.XMLTypeCreator) AbstractTypeCreator(org.apache.cxf.aegis.type.AbstractTypeCreator)

Aggregations

XMLTypeCreator (org.apache.cxf.aegis.type.XMLTypeCreator)3 AbstractTypeCreator (org.apache.cxf.aegis.type.AbstractTypeCreator)2 AegisContext (org.apache.cxf.aegis.AegisContext)1 TypeCreationOptions (org.apache.cxf.aegis.type.TypeCreationOptions)1 Before (org.junit.Before)1