Package org.apache.abdera.i18n.templates

Examples of org.apache.abdera.i18n.templates.CachingContext


        System.out.println(template.expand(context));
    }

    // Using a custom context implementation
    private static void exampleWithCustomContext() {
        CachingContext context = new CachingContext() {
            private static final long serialVersionUID = 4896250661828139020L;

            protected <T> T resolveActual(String var) {
                if (var.equals("user"))
                    return (T)"james";
View Full Code Here


    System.out.println(template.expand(context));
  }
 
  // Using a custom context implementation
  private static void exampleWithCustomContext() {
    CachingContext context = new CachingContext() {
      private static final long serialVersionUID = 4896250661828139020L;
      protected <T> T resolveActual(String var) {
        if (var.equals("user")) return (T)"james";
        else if (var.equals("categories")) return (T)new String[] {"a","b","c"};
        else if (var.equals("foo")) return (T)"abc";
View Full Code Here

TOP

Related Classes of org.apache.abdera.i18n.templates.CachingContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.