org.rhq.scripting.javascript.engine.util
Class InterfaceImplementor

java.lang.Object
  extended by org.rhq.scripting.javascript.engine.util.InterfaceImplementor

public class InterfaceImplementor
extends Object


Nested Class Summary
 class InterfaceImplementor.InterfaceImplementorInvocationHandler
           
 
Constructor Summary
InterfaceImplementor(Invocable engine)
          Creates a new instance of Invocable
 
Method Summary
protected  Object[] convertArguments(Method method, Object[] args)
           
protected  Object convertResult(Method method, Object res)
           
<T> T
getInterface(Object thiz, Class<T> iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceImplementor

public InterfaceImplementor(Invocable engine)
Creates a new instance of Invocable

Method Detail

getInterface

public <T> T getInterface(Object thiz,
                          Class<T> iface)
               throws ScriptException
Throws:
ScriptException

convertResult

protected Object convertResult(Method method,
                               Object res)
                        throws ScriptException
Throws:
ScriptException

convertArguments

protected Object[] convertArguments(Method method,
                                    Object[] args)
                             throws ScriptException
Throws:
ScriptException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.