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