/** * This is abstract in the base class, so we need it * @param configuration */ public void init( ExtendedProperties configuration) { if (log.isTraceEnabled()) { log.trace("ClasspathResourceLoader : initialization complete."); } }
/** * This is abstract in the base class, so we need it * @param configuration */ public void init( ExtendedProperties configuration) { if (log.isTraceEnabled()) { log.trace("ClasspathResourceLoader : initialization complete."); } }
/** * */ public void close() { try { theJar.close(); } catch ( Exception e ) { String msg = "JarHolder: error closing the JAR file"; log.error(msg, e); throw new VelocityException(msg, e); } theJar = null; conn = null; log.trace("JarHolder: JAR file closed"); }
/** * */ public void close() { try { theJar.close(); } catch ( Exception e ) { String msg = "JarHolder: error closing the JAR file"; log.error(msg, e); throw new VelocityException(msg, e); } theJar = null; conn = null; log.trace("JarHolder: JAR file closed"); }
@SuppressWarnings("unchecked") @Override public void init(ExtendedProperties configuration) { paths.addAll( configuration.getVector("path") ); // unicode files may have a BOM marker at the start, but Java // has problems recognizing the UTF-8 bom. Enabling unicode will // recognize all unicode boms. unicode = configuration.getBoolean("unicode", false); if (log.isDebugEnabled()) { log.debug("Do unicode file recognition: " + unicode); } if (log.isDebugEnabled()) { // trim spaces from all paths StringUtils.trimStrings(paths); // this section lets tell people what paths we will be using int sz = paths.size(); for( int i=0; i < sz; i++) { log.debug("MyClasspathResourceLoader : adding path '" + (String) paths.get(i) + "'"); } log.trace("MyClasspathResourceLoader : initialization complete."); } }