Annotation Type Callback


@Retention(RUNTIME)
@Target(METHOD)
public @interface Callback
Marks a method as a callback which can be called from native code. Use VM.getCallbackMethodImpl(java.lang.reflect.Method) or FunctionPtr(java.lang.reflect.Method) to get a function pointer which points to the @Callback annotated method.

See the The Bro Java to Native Bridge section in the user reference documentation for more information on how to call into native code and have native code call into Java using the Bro framework.