Package org.castor.core

Examples of org.castor.core.CoreProperties


     * have not been overwritten by the user.
     *
     * @return Properties instance for Castor CPA modul.
     */
    public static AbstractProperties newInstance() {
        AbstractProperties core = new CoreProperties();
        AbstractProperties cpa = new CPAProperties(core);
        AbstractProperties xml = new XMLProperties(cpa);
        AbstractProperties castor = new CastorProperties(xml);
        return castor;
    }
View Full Code Here


     * @param app Classloader to be used for all classes of Castor and its required libraries.
     * @param domain Classloader to be used for all domain objects.
     * @return Properties instance for Castor CPA modul.
     */
    public static AbstractProperties newInstance(final ClassLoader app, final ClassLoader domain) {
        AbstractProperties core = new CoreProperties(app, domain);
        AbstractProperties cpa = new CPAProperties(core);
        AbstractProperties xml = new XMLProperties(cpa);
        AbstractProperties castor = new CastorProperties(xml);
        return castor;
    }
View Full Code Here

     * user.
     *
     * @return Properties instance for Castor XML module.
     */
    public static AbstractProperties newInstance() {
        AbstractProperties core = new CoreProperties();
        AbstractProperties xml = new XMLProperties(core);
        AbstractProperties castor = new CastorProperties(xml);
        return castor;
    }
View Full Code Here

     * @param app Classloader to be used for all classes of Castor and its required libraries.
     * @param domain Classloader to be used for all domain objects.
     * @return Properties instance for Castor XML modul.
     */
    public static AbstractProperties newInstance(final ClassLoader app, final ClassLoader domain) {
        AbstractProperties core = new CoreProperties(app, domain);
        AbstractProperties xml = new XMLProperties(core);
        AbstractProperties castor = new CastorProperties(xml);
        return castor;
    }
View Full Code Here

    /**
     * Construct a new MappingUnmarshaller.
     */
    public MappingUnmarshaller() {
        _registry = new MappingLoaderRegistry(new CoreProperties());
        _idResolver = new MappingUnmarshallIDResolver();
        AbstractInternalContext internalContext = new AbstractInternalContext() { };
        internalContext.setClassLoader(getClass().getClassLoader());
       
        XMLClassDescriptorResolver cdr = (XMLClassDescriptorResolver) ClassDescriptorResolverFactory
View Full Code Here

* UTF test case for {@see org.castor.jdo.drivers.PointbaseFactory}.
*/
public class TestMappingLoaderRegistry extends TestCase {

    public final void testGetInstance() throws Exception {
        AbstractProperties properties = new CoreProperties();
        MappingLoaderRegistry registry = new MappingLoaderRegistry(properties);
        assertNotNull(registry);
    }
View Full Code Here

        MappingLoaderRegistry registry = new MappingLoaderRegistry(properties);
        assertNotNull(registry);
    }

    public final void testEnlistMappingLoaders() throws Exception {
        AbstractProperties properties = new CoreProperties();
        MappingLoaderRegistry registry = new MappingLoaderRegistry(properties);
        assertNotNull(registry);

        Collection factories = registry.getMappingLoaderFactories();
        assertNotNull(factories);
View Full Code Here

        assertEquals("CastorXmlMapping", factory.getSourceType());

    }

    public final void testGetXMLMappingLoader() throws Exception {
        AbstractProperties properties = new CoreProperties();
        MappingLoaderRegistry registry = new MappingLoaderRegistry(properties);
        assertNotNull(registry);

        MappingLoader mappingLoader = registry.getMappingLoader(
                "CastorXmlMapping", BindingType.XML);
View Full Code Here

TOP

Related Classes of org.castor.core.CoreProperties

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.