ConfigurationFactory implements OpenEjbConfigurationFactory { protected Object toConfigDeclaration(final String name, String value) throws URISyntaxException, OpenEJBException { value = value.replaceFirst("(provider=[^#=&]+)#", "$1%23"); final URI uri = URLs.uri(value); return toConfigDeclaration(name, uri); } ConfigurationFactory();  ConfigurationFactory(final boolean offline);  ConfigurationFactory(final boolean offline, final DynamicDeployer preAutoConfigDeployer);  ConfigurationFactory(final boolean offline, final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline,
                                final DynamicDeployer preAutoConfigDeployer,
                                final OpenEjbConfiguration configuration);  ConfigurationFactory(final boolean offline, final Chain deployerChain, final OpenEjbConfiguration configuration); static List<HandlerChainInfo> toHandlerChainInfo(final HandlerChains chains); @Override void init(final Properties props); @Override OpenEjbConfiguration getOpenEjbConfiguration(); ArrayList<File> getModulesFromClassPath(final List<File> declaredApps, final ClassLoader classLoader); ContainerInfo createContainerInfo(final Container container); Object toConfigDeclaration(final String id, final URI uri); AppInfo configureApplication(final File jarFile); AppInfo configureApplication(final ClassLoader classLoader, final String id, final List<File> jarFiles); @SuppressWarnings("unchecked") AppModule loadApplication(final ClassLoader classLoader, String id, final List<File> jarFiles); EjbJarInfo configureApplication(final EjbJar ejbJar); EjbJarInfo configureApplication(final EjbModule ejbModule); ClientInfo configureApplication(final ClientModule clientModule); ConnectorInfo configureApplication(final ConnectorModule connectorModule); WebAppInfo configureApplication(final WebModule webModule); AppInfo configureApplication(final AppModule appModule); T configureService(final Class<? extends T> type); T configureService(org.apache.openejb.config.Service service, final Class<? extends T> infoType); T configureService(final String id, final Class<? extends T> type); T configureService(final Class<? extends T> type, final String serviceId, final Properties declaredProperties, final String providerId, final String serviceType); static boolean isResourceType(final String service, final List<String> types, final String type); static final String OPENEJB_JDBC_DATASOURCE_CREATOR; static final String ADDITIONAL_DEPLOYMENTS; }
@Test public void testToConfigDeclaration() throws Exception { final String path = "."; ConfigurationFactory factory = new ConfigurationFactory(); Deployments deployments = (Deployments) factory.toConfigDeclaration("", new URI("new: + path)); URLClassLoader cl = (URLClassLoader) deployments.getClasspath(); URL[] urls = cl.getURLs(); assertEquals(urls[0], new File(path).toURI().normalize().toURL()); }