src/de/voidplus/leapmotion/LeapMotion.java
/**
     * Method to invoke callbacks with one argument.
     *
     * @param method Name of the callback
     * @param clazz  Class of argument
     * @param obj    Content of argument
     */
Method to invoke callbacks with one argument.
@param method Name of the callback
@param clazz  Class of argument
@param obj    Content of argument
Method to invoke callbacks with one argument . @param method Name of the callback @param clazz Class of argument @param obj Content of argument
private void dispatch(final String method, Class clazz, Object obj) {
        boolean success = false;
        try {
            this.parent.getClass().getMethod(
                    method,
                    clazz
            ).invoke(
                    this.parent,
                    obj
            );
            success = true;
        } catch (Exception e) {
        } finally {
            if (success) {
                this.log(String.format("Callback %s();", method));
            }
        }
    }
private void dispatch ( final String method , Class clazz , Object obj ) { boolean success = false ; try { this . parent . getClass ( ) . getMethod ( method , clazz ) . invoke ( this . parent , obj ) ; success = true ; } catch ( Exception e ) { } finally { if ( success ) { this . log ( String . format ( "Callback %s();" , method ) ) ; } } }
Method to invoke callbacks with one argument.
Method to invoke callbacks with one argument .
// e.printStackTrace();