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
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.