Package org.apache.felix.ipojo.util

Examples of org.apache.felix.ipojo.util.Callback.call()


            signature);
        if (method != null) {
            MethodMetadata methodCall = method.getMethod();
            Callback mc = new Callback(methodCall, m_instanceManager);
            try {
                return mc.call(params);
            } catch (NoSuchMethodException e) {
                throw new ReflectionException(e);
            } catch (IllegalAccessException e) {
                throw new ReflectionException(e);
            } catch (InvocationTargetException e) {
View Full Code Here


            // Run the callback (final check to avoid
            // NullPointerExceptions)
            if (isListening  && callback != null  && callbackParam != null) {
                try {
                    callback.call(new Object[] { callbackParam });
                } catch (InvocationTargetException e) {
                    error(LOG_PREFIX
                            + "The callback has thrown an exception",
                            e.getTargetException());
                } catch (Exception e) {
View Full Code Here

    private Object callMethod(MethodMetadata methodMetadata, String methodName,
            Object[] params) {
        Callback mc = new Callback(methodMetadata, m_instanceManager);
        try {
            if ((params == null) || (params.length == 0)) {
                return mc.call();
            } else {
                return mc.call(params);
            }
        } catch (NoSuchMethodException e) {
            // should never happen : method exists
View Full Code Here

        Callback mc = new Callback(methodMetadata, m_instanceManager);
        try {
            if ((params == null) || (params.length == 0)) {
                return mc.call();
            } else {
                return mc.call(params);
            }
        } catch (NoSuchMethodException e) {
            // should never happen : method exists
            System.err.println("No such method : " + methodName);
            e.printStackTrace();
View Full Code Here

            signature);
        if (method != null) {
            MethodMetadata methodCall = method.getMethod();
            Callback mc = new Callback(methodCall, m_instanceManager);
            try {
                return mc.call(params);
            } catch (NoSuchMethodException e) {
                throw new ReflectionException(e);
            } catch (IllegalAccessException e) {
                throw new ReflectionException(e);
            } catch (InvocationTargetException e) {
View Full Code Here

            // Run the callback (final check to avoid
            // NullPointerExceptions)
            if (isListening  && callback != null  && callbackParam != null) {
                try {
                    callback.call(new Object[] { callbackParam });
                } catch (InvocationTargetException e) {
                    error(LOG_PREFIX
                            + "The callback has thrown an exception",
                            e.getTargetException());
                } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.