|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.bridge.PhpProcedure
public final class PhpProcedure
This class takes the supplied PHP environment and creates a dynamic proxy for calling PHP code.
Method Summary | |
---|---|
static java.lang.Object |
createProxy(java.lang.Class[] interfaces,
PhpProcedure proc)
Called from getInterface(). |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.String method,
java.lang.Object[] args)
Invoke a PHP function or a PHP method. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object createProxy(java.lang.Class[] interfaces, PhpProcedure proc)
interfaces
- - The list of interfaces that this proxy must implement, may be empty.proc
- - A procedure obtained from java_closure().
public java.lang.Object invoke(java.lang.Object proxy, java.lang.String method, java.lang.Object[] args) throws java.lang.Throwable
proxy
- The php environment or the PHP objectmethod
- The php method nameargs
- the arguments
java.lang.Throwable
- script exception.public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |