org.peaseplate.internal.resolver
Class FileResolver

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

public class FileResolver
extends AbstractFileBasedResolver


Constructor Summary
FileResolver()
           
 
Method Summary
 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

FileResolver

public FileResolver()
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)


Copyright © 2008. All Rights Reserved.