org.peaseplate.internal.resolver
Class ClassLoaderResolver

java.lang.Object
  extended by org.peaseplate.resolver.AbstractFileBasedResolver
      extended by org.peaseplate.internal.resolver.ClassLoaderResolver
All Implemented Interfaces:
Resolver

public class ClassLoaderResolver
extends AbstractFileBasedResolver


Constructor Summary
ClassLoaderResolver()
           
 
Method Summary
protected  java.net.URL getResource(TemplateEngine engine, java.lang.String resource)
           
 MessagesLocator resolveMessages(TemplateEngine engine, ResourceKey key)
          Resolves the specified messages and returns a MessagesLocator if found or null otherwise
 TemplateLocator resolveTemplate(TemplateEngine engine, ResourceKey key)
          Resolves the specified template and returns a TemplateLocator if found or null otherwise.
 
Methods inherited from class org.peaseplate.resolver.AbstractFileBasedResolver
convertBackslashes, formatLocale, includeLocale, replaceExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderResolver

public ClassLoaderResolver()
Method Detail

resolveTemplate

public TemplateLocator resolveTemplate(TemplateEngine engine,
                                       ResourceKey key)
                                throws TemplateException
Description copied from interface: Resolver
Resolves the specified template and returns a TemplateLocator if found or null otherwise.

Parameters:
engine - the Pease Plate engine
key - the key
Returns:
the template locator or null if not found
Throws:
TemplateException - on occasion
See Also:
Resolver.resolveTemplate(org.peaseplate.TemplateEngine, org.peaseplate.internal.ResourceKey)

resolveMessages

public MessagesLocator resolveMessages(TemplateEngine engine,
                                       ResourceKey key)
                                throws TemplateException
Description copied from interface: Resolver
Resolves the specified messages and returns a MessagesLocator if found or null otherwise

Parameters:
engine - the Pease Plate engine
key - the key
Returns:
the messages locator or null if not found
Throws:
TemplateException - on occasion
See Also:
Resolver.resolveMessages(org.peaseplate.TemplateEngine, org.peaseplate.internal.ResourceKey)

getResource

protected java.net.URL getResource(TemplateEngine engine,
                                   java.lang.String resource)


Copyright © 2008. All Rights Reserved.