ariba.util.expr
Class ClassNameToFirstParameterAdapter

java.lang.Object
  extended by ariba.util.expr.ObjectMethodAccessor
      extended by ariba.util.expr.ClassNameToFirstParameterAdapter
All Implemented Interfaces:
MethodAccessor

public class ClassNameToFirstParameterAdapter
extends ObjectMethodAccessor

Takes care of getting the first argument from the methodInfo and passing that during runtime based on the annotation. Registered with ExprRuntime during startup.


Constructor Summary
ClassNameToFirstParameterAdapter()
           
 
Method Summary
 java.lang.Object callStaticMethod(ExprContext context, java.lang.Class targetClass, java.lang.String methodName, java.lang.Object[] args)
          Calls the static method named with the arguments given on the class given.
 
Methods inherited from class ariba.util.expr.ObjectMethodAccessor
callMethod
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassNameToFirstParameterAdapter

public ClassNameToFirstParameterAdapter()
Method Detail

callStaticMethod

public java.lang.Object callStaticMethod(ExprContext context,
                                         java.lang.Class targetClass,
                                         java.lang.String methodName,
                                         java.lang.Object[] args)
                                  throws MethodFailedException
Description copied from interface: MethodAccessor
Calls the static method named with the arguments given on the class given.

Specified by:
callStaticMethod in interface MethodAccessor
Overrides:
callStaticMethod in class ObjectMethodAccessor
Parameters:
context - expression context in which the method should be called
targetClass - the object in which the method exists
methodName - the name of the method
args - the arguments to the method
Returns:
result of calling the method
Throws:
MethodFailedException - if there is an error calling the method


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.