use of org.apache.openejb.config.ConfigurableClasspathArchive in project tomee by apache.
the class AbstractXmlAnnotationFinderTest method initFinder.
@Before
public void initFinder() throws Exception {
final ClassLoader loader = Thread.currentThread().getContextClassLoader();
System.setProperty(SCAN_XML_PROPERTY, scanXml());
finder = new AnnotationFinder(new ConfigurableClasspathArchive(loader, Arrays.asList(new URL(loader.getResource(scanXml()).toExternalForm().replace(scanXml(), "")))));
System.clearProperty("openejb.scan.xml.name");
}
Aggregations