org.trimou.prettytime.resolver
Class PrettyTimeResolver

java.lang.Object
  extended by org.trimou.engine.resolver.AbstractResolver
      extended by org.trimou.engine.resolver.i18n.LocaleAwareResolver
          extended by org.trimou.prettytime.resolver.PrettyTimeResolver
All Implemented Interfaces:
WithPriority, Resolver

public class PrettyTimeResolver
extends LocaleAwareResolver

PrettyTime resolver.

Author:
Martin Kouba

Field Summary
static int PRETTY_TIME_RESOLVER_PRIORITY
           
 
Fields inherited from class org.trimou.engine.resolver.i18n.LocaleAwareResolver
localeSupport
 
Fields inherited from interface org.trimou.engine.priority.WithPriority
BUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY
 
Constructor Summary
PrettyTimeResolver()
           
 
Method Summary
 int getPriority()
           
 void init(Configuration configuration)
           
 Object resolve(Object contextObject, String name)
           
 
Methods inherited from class org.trimou.engine.resolver.i18n.LocaleAwareResolver
getCurrentLocale
 
Methods inherited from class org.trimou.engine.resolver.AbstractResolver
getConfigurationKeys, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRETTY_TIME_RESOLVER_PRIORITY

public static final int PRETTY_TIME_RESOLVER_PRIORITY
Constructor Detail

PrettyTimeResolver

public PrettyTimeResolver()
Method Detail

resolve

public Object resolve(Object contextObject,
                      String name)

getPriority

public int getPriority()

init

public void init(Configuration configuration)
Specified by:
init in interface Resolver
Overrides:
init in class LocaleAwareResolver


Copyright © 2013. All Rights Reserved.