/** 初始化resource loader. */ @Override public void init(ExtendedProperties configuration) { rsvc.getLog().info(getLogID() + " : initialization starting."); preloadedResources = createTreeMap(); @SuppressWarnings("unchecked") Map<String, Resource> resources = assertNotNull( (Map<String, Resource>) configuration.getProperty(PRELOADED_RESOURCES_KEY), PRELOADED_RESOURCES_KEY); for (Map.Entry<String, Resource> entry : resources.entrySet()) { String templateName = normalizeTemplateName(entry.getKey()); Resource resource = entry.getValue(); preloadedResources.put(templateName, resource); } rsvc.getLog().info(getLogID() + " : preloaded resources: " + new MapBuilder().appendAll(preloadedResources)); rsvc.getLog().info(getLogID() + " : initialization complete."); }
/** 初始化resource loader. */ @Override public void init(ExtendedProperties configuration) { rsvc.getLog().info(getLogID() + " : initialization starting."); preloadedResources = createTreeMap(); @SuppressWarnings("unchecked") Map<String, Resource> resources = assertNotNull( (Map<String, Resource>) configuration.getProperty(PRELOADED_RESOURCES_KEY), PRELOADED_RESOURCES_KEY); for (Map.Entry<String, Resource> entry : resources.entrySet()) { String templateName = normalizeTemplateName(entry.getKey()); Resource resource = entry.getValue(); preloadedResources.put(templateName, resource); } rsvc.getLog().info(getLogID() + " : preloaded resources: " + new MapBuilder().appendAll(preloadedResources)); rsvc.getLog().info(getLogID() + " : initialization complete."); }
/** 初始化resource loader. */ @Override public void init(ExtendedProperties configuration) { rsvc.getLog().info(getLogID() + " : initialization starting."); springLoader = assertNotNull((ResourceLoader) rsvc.getApplicationAttribute(SPRING_RESOURCE_LOADER_KEY), SPRING_RESOURCE_LOADER_KEY); path = normalizeAbsolutePath(configuration.getString("path"), true); assertTrue(!isEmpty(path), "path"); path += "/"; rsvc.getLog().info(getLogID() + " : set path '" + path + "'"); rsvc.getLog().info(getLogID() + " : initialization complete."); }
/** 初始化resource loader. */ @Override public void init(ExtendedProperties configuration) { rsvc.getLog().info(getLogID() + " : initialization starting."); springLoader = assertNotNull((ResourceLoader) rsvc.getApplicationAttribute(SPRING_RESOURCE_LOADER_KEY), SPRING_RESOURCE_LOADER_KEY); path = normalizeAbsolutePath(configuration.getString("path"), true); assertTrue(!isEmpty(path), "path"); path += "/"; rsvc.getLog().info(getLogID() + " : set path '" + path + "'"); rsvc.getLog().info(getLogID() + " : initialization complete."); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public static void info(Object message) { getLog().info(message); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public static void info(Object message) { getLog().info( message ); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public void info(Object message) { getLog().info(message); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public static void info(Object message) { getLog().info( message ); }
/** * @param message * @deprecated Use getLog() and call warn() on it. */ public void info(Object message) { getLog().info(message); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public static void info(Object message) { getLog().info(message); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public void info(Object message) { getLog().info(message); }
/** * @param message * @deprecated Use getLog() and call warn() on it. */ public void info(Object message) { getLog().info(message); }
log.info ( "velocity requests [" + origSource + "], normalized as [" + source + "]..." ); log.info ( "\ttrying " + option ); if ( fNormalLoader.resourceExists ( option ) ) log.info ( "\ttrying " + origSource + " (the original)" ); result = fNormalLoader.getResourceStream ( origSource ); log.info ( "UiVelocityResourceLoader.getResourceStream ( " + origSource + " ) --> " + ( result == null ? "<not found>" : "found" ) );
/** 初始化resource loader. */ @Override public void init(ExtendedProperties configuration) { rsvc.getLog().info(getLogID() + " : initialization starting."); preloadedResources = createTreeMap(); @SuppressWarnings("unchecked") Map<String, Resource> resources = assertNotNull( (Map<String, Resource>) configuration.getProperty(PRELOADED_RESOURCES_KEY), PRELOADED_RESOURCES_KEY); for (Map.Entry<String, Resource> entry : resources.entrySet()) { String templateName = normalizeTemplateName(entry.getKey()); Resource resource = entry.getValue(); preloadedResources.put(templateName, resource); } rsvc.getLog().info(getLogID() + " : preloaded resources: " + new MapBuilder().appendAll(preloadedResources)); rsvc.getLog().info(getLogID() + " : initialization complete."); }
/** 初始化resource loader. */ @Override public void init(ExtendedProperties configuration) { rsvc.getLog().info(getLogID() + " : initialization starting."); springLoader = assertNotNull((ResourceLoader) rsvc.getApplicationAttribute(SPRING_RESOURCE_LOADER_KEY), SPRING_RESOURCE_LOADER_KEY); path = normalizeAbsolutePath(configuration.getString("path"), true); assertTrue(!isEmpty(path), "path"); path += "/"; rsvc.getLog().info(getLogID() + " : set path '" + path + "'"); rsvc.getLog().info(getLogID() + " : initialization complete."); }
@Override public void initialize (RuntimeServices rsvc) throws Exception { super.initialize(rsvc); // the web framework was kind enough to slip this into the runtime when it started up Application app = (Application)rsvc.getApplicationAttribute(Application.VELOCITY_ATTR_KEY); if (app == null) { rsvc.getLog().warn("SCRM: No application was initialized. A user of the " + "servlet context resource manager must ensure that " + "an application is instantiated and initialized."); return; } rsvc.getLog().info("SCRM initializing."); // create our resource loader _contextLoader = new ServletContextResourceLoader(app.getServletContext()); // for now, turn caching on with the expectation that new resources of any sort will result // in the entire web application being reloaded and clearing out the cache _contextLoader.setCachingOn(true); rsvc.getLog().info("SCRM initialization complete."); }
getVelocityView().getVelocityEngine().getLog().info("VelocityViewServlet: Default content-type is: " + defaultContentType);
log.info("Changing the default encoding of string repository '" + repoName + "' from " + repository.getEncoding() + " to " + encoding);
log.info("Runtime : ran out of parsers. Creating a new one. " + " Please increment the parser.pool.size property." + " The current value is too small.");
log.info("Runtime : ran out of parsers. Creating a new one. " + " Please increment the parser.pool.size property." + " The current value is too small.");