Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for MethodInvocation (1.73 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/MethodInvocation.java

    import org.gradle.util.internal.CollectionUtils;
    
    import java.lang.reflect.Method;
    import java.util.Arrays;
    
    public class MethodInvocation {
        private static final Object[] ZERO_ARGS = new Object[0];
        private final Method method;
        private final Object[] arguments;
    
        public MethodInvocation(Method method, Object[] args) {
            this.method = method;
            arguments = args == null ? ZERO_ARGS : args;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 12:43:02 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/MethodInvocation.java

     * limitations under the License.
     */
    
    package org.gradle.tooling.internal.adapter;
    
    import javax.annotation.Nullable;
    import java.lang.reflect.Type;
    
    class MethodInvocation {
        private final Object[] parameters;
        private final Class returnType;
        private final Type genericReturnType;
        private final String name;
        private final Class<?>[] parameterTypes;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MethodInvocationSerializer.java

    import org.gradle.internal.serialize.*;
    import org.gradle.internal.dispatch.MethodInvocation;
    
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.util.HashMap;
    import java.util.Map;
    
    public class MethodInvocationSerializer implements StatefulSerializer<MethodInvocation> {
        private final ClassLoader classLoader;
        private final MethodArgsSerializer methodArgsSerializer;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AbstractBroadcastDispatch.java

         * Dispatch an invocation to multiple handlers.
         */
        private void dispatch(MethodInvocation invocation, Iterator<? extends Dispatch<MethodInvocation>> handlers) {
            // Defer creation of failures list, assume dispatch will succeed
            List<Throwable> failures = null;
            while (handlers.hasNext()) {
                Dispatch<MethodInvocation> handler = handlers.next();
                try {
                    handler.dispatch(invocation);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/DefaultListenerManager.java

            private final ReentrantLock broadcasterLock = new ReentrantLock();
            private ListenerDetails logger;
            private Dispatch<MethodInvocation> parentDispatch;
            private List<Dispatch<MethodInvocation>> allWithLogger = Collections.emptyList();
            private List<Dispatch<MethodInvocation>> allWithNoLogger = Collections.emptyList();
            private boolean notified;
    
            EventBroadcast(Class<T> type) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 10:09:43 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AnonymousListenerBroadcast.java

    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    
    public class AnonymousListenerBroadcast<T> extends ListenerBroadcast<T> {
        private final Dispatch<MethodInvocation> forwardingDispatch;
    
        public AnonymousListenerBroadcast(Class<T> type, Dispatch<MethodInvocation> forwardingDispatch) {
            super(type);
            this.forwardingDispatch = forwardingDispatch;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/MethodInvocationTest.groovy

        def "equality"() {
            def invocation = new MethodInvocation(String.class.getMethod("length"), ["param"] as Object[])
            def equalInvocation = new MethodInvocation(String.class.getMethod("length"), ["param"] as Object[])
            def differentMethod = new MethodInvocation(String.class.getMethod("getBytes"), ["param"] as Object[])
            def differentArgs = new MethodInvocation(String.class.getMethod("length"), ["a", "b"] as Object[])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/BroadcastDispatch.java

            }
    
            @Override
            public void dispatch(MethodInvocation message) {
            }
        }
    
        private static class SingletonDispatch<T> extends BroadcastDispatch<T> {
            private final Object handler;
            private final Dispatch<MethodInvocation> dispatch;
    
            SingletonDispatch(Class<T> type, Object handler, Dispatch<MethodInvocation> dispatch) {
                super(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:00:00 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/BroadcastDispatchTest.groovy

            dispatch.empty
            dispatch.size() == 0
            dispatch.dispatch(new MethodInvocation(method, ["param"] as Object[]))
        }
    
        def "can add a dispatch listener"() {
            def listener = Mock(Dispatch)
            def invocation = new MethodInvocation(method, ["param"] as Object[])
    
            when:
            def dispatch = BroadcastDispatch.empty(TestListener).add(listener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy

            def method2 = String.class.getMethod("substring", Integer.TYPE)
            def invocation1 = new MethodInvocation(method1, [1, 2] as Object[])
            def invocation2 = new MethodInvocation(method2, [3] as Object[])
            def invocation3 = new MethodInvocation(method1, [4, 5] as Object[])
    
            when:
            def serialized = serialize(invocation1, invocation2, invocation3)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top