- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 19 Oct 2009 12:47:07 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn In directory hutz:/tmp/cvs-serv9051/src/org/w3c/unicorn Modified Files: Framework.java Log Message: renamed responseParser.properties file to responseImpl.properties + renamed initResponseParsers() method to initResponseImplementations() + added reference to the old schema implementation class Index: Framework.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/Framework.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Framework.java 19 Oct 2009 10:09:04 -0000 1.23 +++ Framework.java 19 Oct 2009 12:47:05 -0000 1.24 @@ -95,7 +95,7 @@ private static VelocityEngine velocityEngine; private static String[] configFiles = { "extensions.properties", - "responseParsers.properties", + "responseImpl.properties", "output.properties", "velocity.properties", "mail.properties"}; @@ -120,7 +120,7 @@ initCore(); initConfig(); initUnmarshallers(); - initResponseParsers(); + initResponseImplementations(); initObservers(); initTasklists(); initLanguages(); @@ -260,23 +260,23 @@ } @SuppressWarnings("unchecked") - public static void initResponseParsers() throws InitializationFailedException { + public static void initResponseImplementations() throws InitializationFailedException { // Load the map of ResponseParser logger.debug("-------------------------------------------------------"); - logger.debug("Loading available response implementations form responseParsers.properties"); - Properties aProperties = Property.getProps("responseParsers.properties"); + logger.debug("Loading available response implementations form responseImpl.properties"); + Properties aProperties = Property.getProps("responseImpl.properties"); for (Object key : aProperties.keySet()) { String className = aProperties.getProperty(key.toString()); try { if (Response.class.isAssignableFrom(Class.forName(className))) { Class.forName(className).getConstructor(InputStream.class, String.class); responseImpl.put(key.toString(), (Class<Response>) Class.forName(className)); - logger.debug("> Parser loaded: " + responseImpl.get(key).getClass().toString()); + logger.debug("> Implementation loaded: " + responseImpl.get(key).getClass().toString()); } else { logger.error("> Class: " + className + " is not a Response implementation."); } } catch (ClassNotFoundException e) { - logger.error("Class not found: " + className + ". Check responseParsers.properties."); + logger.error("Class not found: " + className + ". Check responseImpl.properties."); } catch (NoSuchMethodException e) { logger.error("Response implementation: " + className + " does not have a constructor with signature (InputStream is, String charset). Implementation skipped."); } catch (Exception e) { @@ -284,7 +284,7 @@ } } if (responseImpl.size() == 0) { - throw new InitializationFailedException("There is no parser loaded. Check responseParsers.properties."); + throw new InitializationFailedException("There is no response implementation loaded. Check responseImpl.properties."); } else { logger.info("OK - " + responseImpl.size() + " implementation(s) successfully loaded."); }
Received on Monday, 19 October 2009 12:47:11 UTC