org.keplerproject.luajava
Class LuaInvocationHandler
java.lang.Object
org.keplerproject.luajava.LuaInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class LuaInvocationHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Class that implements the InvocationHandler interface.
This class is used in the LuaJava's proxy system.
When a proxy object is accessed, the method invoked is
called from Lua
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Function called when a proxy object function is invoked. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuaInvocationHandler
public LuaInvocationHandler(LuaObject obj)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws LuaException
- Function called when a proxy object function is invoked.
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
LuaException