org.apache.shindig.expressions
Class Functions

java.lang.Object
  extended by javax.el.FunctionMapper
      extended by org.apache.shindig.expressions.Functions

public class Functions
extends javax.el.FunctionMapper

An implementation of FunctionMapper that uses annotated static methods on classes to implement EL functions.

Each class passed to the constructor will have EL functions added for any static method annotated with the @Expose annotation. Each method can be exposed in one namespace prefix, with any number of method names.

The default Guice instance of the Functions class has the OpensocialFunctions methods registered.


Nested Class Summary
static interface Functions.Expose
          Annotation for static methods to be exposed as functions.
 
Constructor Summary
Functions(Class<?>... functionClasses)
          Creates a Functions class with the specified
 
Method Summary
 Method resolveFunction(String prefix, String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions(Class<?>... functionClasses)
Creates a Functions class with the specified

Method Detail

resolveFunction

public Method resolveFunction(String prefix,
                              String methodName)
Specified by:
resolveFunction in class javax.el.FunctionMapper


Copyright © 2007-2012. All Rights Reserved.