org.apache.myfaces.renderkit.template
Class DefaultTemplateLoader

java.lang.Object
  extended by freemarker.cache.URLTemplateLoader
      extended by org.apache.myfaces.renderkit.template.DefaultTemplateLoader
All Implemented Interfaces:
freemarker.cache.TemplateLoader

public class DefaultTemplateLoader
extends freemarker.cache.URLTemplateLoader


Constructor Summary
DefaultTemplateLoader()
           
 
Method Summary
protected static java.lang.ClassLoader getCurrentLoader(java.lang.Object defaultObject)
          Gets the ClassLoader associated with the current thread.
protected  java.net.URL getURL(java.lang.String s)
           
 
Methods inherited from class freemarker.cache.URLTemplateLoader
canonicalizePrefix, closeTemplateSource, findTemplateSource, getLastModified, getReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTemplateLoader

public DefaultTemplateLoader()
Method Detail

getURL

protected java.net.URL getURL(java.lang.String s)
Specified by:
getURL in class freemarker.cache.URLTemplateLoader

getCurrentLoader

protected static java.lang.ClassLoader getCurrentLoader(java.lang.Object defaultObject)
Gets the ClassLoader associated with the current thread. Returns the class loader associated with the specified default object if no context loader is associated with the current thread.

Parameters:
defaultObject - The default object to use to determine the class loader (if none associated with current thread.)
Returns:
ClassLoader


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.