org.rococoa.internal
Class OCInvocationCallbacks
java.lang.Object
org.rococoa.internal.OCInvocationCallbacks
public class OCInvocationCallbacks
- extends java.lang.Object
Holds the callbacks called when a method is invoked on an Objective-C proxy
for a Java object.
When a message is sent to an OC object first it is sent
methodSignatureForSelector: Our Obj-C proxy forwards this to
methodSignatureCallback; we build a method signature string in Java
corresponding to the Java method and return it.
The object is then sent forwardInvocation: passing an NSInvocation. It
forwards this to selectorInvokedCallback, which we use to invoke the method
on the Java Object.
- Author:
- duncan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
methodSignatureCallback
public final RococoaLibrary.MethodSignatureCallback methodSignatureCallback
- Called when method is about to be invoked on OC proxy and needs a method signature as String
- See Also:
- "http://www.cocoadev.com/index.pl?NSMethodSignature"
selectorInvokedCallback
public final RococoaLibrary.SelectorInvokedCallback selectorInvokedCallback
- Called when method has been invoked on OC proxy and needs to be forwarded to javaObject
OCInvocationCallbacks
public OCInvocationCallbacks(java.lang.Object javaObject)
methodSignatureForSelector
protected java.lang.String methodSignatureForSelector(java.lang.String selectorName)
methodForSelector
protected java.lang.reflect.Method methodForSelector(java.lang.String selectorName)
ocMethodSignatureAsString
protected java.lang.String ocMethodSignatureAsString(java.lang.reflect.Method method)
- See Also:
- "http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_13_section_9.html"
Copyright © 2009. All Rights Reserved.