Package org.apache.openejb.config

Examples of org.apache.openejb.config.PersistenceUnitLinkResolver


    public void resolve() {
        final AppModule appModule = new AppModule(Thread.currentThread().getContextClassLoader(), "target/classes/foo", new Application(), false);

        Files.mkdir(new File("target/classes/foo/bar"));

        final PersistenceUnitLinkResolver resolver = new PersistenceUnitLinkResolver(appModule);
        resolver.add(URI.create("file:/fake/1"), "foo", new PersistenceUnit());
        resolver.add(URI.create("file:/fake/2"), "foo", new PersistenceUnit());

        assertNull(resolver.resolveLink("foo", URI.create("bar"))); // can't resolve but doesn't fail
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.config.PersistenceUnitLinkResolver

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.