org.rococoa.internal
Class MsgSendInvocationMapper

java.lang.Object
  extended by org.rococoa.internal.MsgSendInvocationMapper
All Implemented Interfaces:
com.sun.jna.InvocationMapper

public class MsgSendInvocationMapper
extends java.lang.Object
implements com.sun.jna.InvocationMapper

A JNA InvocationMapper that maps calls to syntheticSendMessage to a MsgSendHandler. This allows us to dispatch all calls to syntheticSendMessage and have MsgSendHandler call objc_msgSend or objc_msgSend_stret as appropriate, casting the return type appropriately.

Author:
duncan

Constructor Summary
MsgSendInvocationMapper()
           
 
Method Summary
 java.lang.reflect.InvocationHandler getInvocationHandler(com.sun.jna.NativeLibrary lib, java.lang.reflect.Method m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgSendInvocationMapper

public MsgSendInvocationMapper()
Method Detail

getInvocationHandler

public java.lang.reflect.InvocationHandler getInvocationHandler(com.sun.jna.NativeLibrary lib,
                                                                java.lang.reflect.Method m)
Specified by:
getInvocationHandler in interface com.sun.jna.InvocationMapper


Copyright © 2009. All Rights Reserved.