org.bridj
Interface BridJRuntime

All Known Subinterfaces:
CSharpRuntime
All Known Implementing Classes:
AbstractBridJRuntime, COMRuntime, CPPRuntime, CRuntime, DotNetRuntime, MFCRuntime, MonoRuntime, ObjectiveCRuntime

public interface BridJRuntime

Interface that each specific pluggable native runtime must implement.
A runtime is attached to a class via the Runtime annotation, so any runtime can be added in thirdparty libraries.
A runtime typically defines NativeObject subclasses and deals with their instances lifecycle through the type information metadata BridJRuntime.TypeInfo class.

Author:
ochafik

Nested Class Summary
static interface BridJRuntime.TypeInfo<T extends NativeObject>
          Type information metadata + lifecycle management methods.
 
Method Summary
<T extends NativeObject>
Class<? extends T>
getActualInstanceClass(Pointer<T> pInstance, Type officialType)
           
 Type getType(NativeObject instance)
           
<T extends NativeObject>
BridJRuntime.TypeInfo<T>
getTypeInfo(Type type)
           
 boolean isAvailable()
           
 void register(Type type)
           
 void unregister(Type type)
           
 

Method Detail

getType

Type getType(NativeObject instance)

register

void register(Type type)

unregister

void unregister(Type type)

getTypeInfo

<T extends NativeObject> BridJRuntime.TypeInfo<T> getTypeInfo(Type type)

isAvailable

boolean isAvailable()

getActualInstanceClass

<T extends NativeObject> Class<? extends T> getActualInstanceClass(Pointer<T> pInstance,
                                                                   Type officialType)


Copyright © 2009-2012. All Rights Reserved.