/** * Sets the location of the registry file. Initializes singleton registry. * * @param registryURL */ public static void setLocation( URL registryURL ) { setLocation( registryURL, DefaultCommonsServiceKernelInit.class.getName() ); } public static void setLocation( URL registryURL, String strCommonServicesInitDefault )
/** * Sets the location of the registry file. Initializes singleton registry. * * @param registryURL */ public static void setLocation( URL registryURL ) { setLocation( registryURL, DefaultCommonsServiceKernelInit.class.getName() ); } public static void setLocation( URL registryURL, String strCommonServicesInitDefault )
/** /** * Initialize with defaults. * Guidewire applications should NEVER call this. */ public static void initDefaults() { try { Registry.setLocation( Registry.class.getResource( "/gw/config/default.xml" ) ); } catch( Throwable t ) { t.printStackTrace(); } }
/** /** * Initialize with defaults. * Guidewire applications should NEVER call this. */ public static void initDefaults() { try { Registry.setLocation( Registry.class.getResource( "/gw/config/default.xml" ) ); } catch( Throwable t ) { t.printStackTrace(); } }
Registry.setLocation( possibleReg.toURI().toURL() ); ArrayList<File> files = new ArrayList<File>(); List<String> entries = Registry.instance().getClasspathEntries(); Registry.setLocation( Gosu.class.getResource( "shell/registry.xml" ) ); return Collections.emptyList();
@Override public void execute() throws BuildException { if (getClass().getClassLoader() instanceof AntClassLoader) { AntClassLoader loader = (AntClassLoader) getClass().getClassLoader(); new VarkClassPathThing().initAntClassLoader(loader); } Aardvark.setProject(getProject(), null); List<File> cp = deriveClasspath(); if (_classpath != null) { for (String pathElement : _classpath.list()) { if (new File(pathElement).exists()) { cp.add(new File(pathElement)); } else { getProject().log("path element does not exist: " + pathElement, Project.MSG_WARN); } } } Registry.setLocation(GosuInitTask.class.getResource("/gw/vark/init/registry.xml")); String prop = System.getProperty("java.class.path"); StringBuilder newProp = new StringBuilder(prop); for (File file : cp) { newProp.append(File.pathSeparatorChar).append(file.getAbsolutePath()); } // XXX: to make our typeloader to load... System.setProperty("java.class.path", newProp.toString()); Gosu.init(cp); System.setProperty("java.class.path", prop); }