@Test public void testToConfigDeclaration() throws Exception { final String path = "."; final ConfigurationFactory factory = new ConfigurationFactory(); final Deployments deployments = (Deployments) factory.toConfigDeclaration("", new URI("new: + path)); final URLClassLoader cl = (URLClassLoader) deployments.getClasspath(); final URL[] urls = cl.getURLs(); assertEquals(urls[0], new File(path).toURI().normalize().toURL()); }
protected static 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 implements OpenEjbConfigurationFactory { protected static 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 implements OpenEjbConfigurationFactory { protected static 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); }
ConfigurationFactory implements OpenEjbConfigurationFactory { protected static 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); boolean isOffline(); static List<HandlerChainInfo> toHandlerChainInfo(final HandlerChains chains); @Override void init(final Properties props); OpenEjbConfiguration getOpenEjbConfiguration(final File configuartionFile); OpenEjbConfiguration getOpenEjbConfiguration(final Openejb providedConf); @Override OpenEjbConfiguration getOpenEjbConfiguration(); ArrayList<File> getModulesFromClassPath(final List<File> declaredApps, final ClassLoader classLoader); ContainerInfo createContainerInfo(final Container container); static void loadPropertiesDeclaredConfiguration(final Openejb openejb); static void fillOpenEjb(final Openejb openejb, final Properties sysProps); static 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); static URI[] resolveClasspath(final String rawstring); 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); List<String> getResourceIds(final String type, Properties required); static boolean isResourceType(final String service, final List<String> types, final String type); static List<ResourceInfo> sort(final List<ResourceInfo> infos, final String prefix); }
ConfigurationFactory implements OpenEjbConfigurationFactory { protected static 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); boolean isOffline(); static List<HandlerChainInfo> toHandlerChainInfo(final HandlerChains chains); @Override void init(final Properties props); OpenEjbConfiguration getOpenEjbConfiguration(final File configuartionFile); OpenEjbConfiguration getOpenEjbConfiguration(final Openejb providedConf); @Override OpenEjbConfiguration getOpenEjbConfiguration(); ArrayList<File> getModulesFromClassPath(final List<File> declaredApps, final ClassLoader classLoader); ContainerInfo createContainerInfo(final Container container); static void loadPropertiesDeclaredConfiguration(final Openejb openejb); static void fillOpenEjb(final Openejb openejb, final Properties sysProps); static 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); static URI[] resolveClasspath(final String rawstring); 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); List<String> getResourceIds(final String type, Properties required); static boolean isResourceType(final String service, final List<String> types, final String type); static List<ResourceInfo> sort(final List<ResourceInfo> infos, final String prefix); static final String OPENEJB_JDBC_DATASOURCE_CREATOR; static final String ADDITIONAL_DEPLOYMENTS; }