Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for methodInvocation (0.34 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnection.java

            StatefulSerializer<InterHubMessage> serializer = new InterHubMessageSerializer(
                new TypeSafeSerializer<MethodInvocation>(MethodInvocation.class,
                    new MethodInvocationSerializer(
                        methodParamClassLoader,
                        argsSerializer)));
    
            connection = completion.create(serializer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/ListenerBroadcastTest.groovy

            then:
            0 * _._
        }
    
        def 'can use dispatch to receive notifications'() {
            given:
            Dispatch<MethodInvocation> dispatch1 = Mock()
            Dispatch<MethodInvocation> dispatch2 = Mock()
            def invocation = new MethodInvocation(TestListener.getMethod("event1", String.class), "param")
    
            broadcast.add(dispatch1)
            broadcast.add(dispatch2)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ProxyDispatchAdapter.java

        }
    
        private static class DispatchingInvocationHandler implements InvocationHandler {
            private final Class<?> type;
            private final Dispatch<? super MethodInvocation> dispatch;
    
            private DispatchingInvocationHandler(Class<?> type, Dispatch<? super MethodInvocation> dispatch) {
                this.type = type;
                this.dispatch = dispatch;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/integTest/groovy/org/gradle/testing/RetainStacktraceForInheritedTestMethodsTest.groovy

            //         at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
            //         at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
            //         at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/timeout/IntegrationTestTimeoutInterceptor.groovy

    import org.gradle.api.Action
    import org.spockframework.runtime.SpockAssertionError
    import org.spockframework.runtime.SpockTimeoutError
    import org.spockframework.runtime.extension.IMethodInvocation
    import org.spockframework.runtime.extension.MethodInvocation
    import org.spockframework.runtime.extension.builtin.TimeoutInterceptor
    import org.spockframework.runtime.model.MethodInfo
    
    import java.util.concurrent.TimeUnit
    
    @CompileStatic
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (1)
  6. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnectionTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.remote.internal.hub
    
    import org.gradle.api.GradleException
    import org.gradle.internal.dispatch.MethodInvocation
    import org.gradle.internal.dispatch.StreamCompletion
    import org.gradle.internal.remote.internal.ConnectCompletion
    import org.gradle.internal.remote.internal.TestConnection
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/ListenerBroadcast.java

     * limitations under the License.
     */
    
    package org.gradle.internal.event;
    
    import org.gradle.api.Action;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    import org.gradle.internal.dispatch.ProxyDispatchAdapter;
    
    import java.util.Collection;
    
    /**
     * <p>Manages a set of listeners of type T. Provides an implementation of T which can be used to broadcast to all
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/JvmGradlePluginProjectInitDescriptor.java

                BuildScriptBuilder.Expression testImplementation = buildScriptBuilder.containerElementExpression("configurations", "testImplementation");
                buildScriptBuilder.methodInvocation(null, functionalTestImplementation, "extendsFrom", testImplementation);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ReflectionDispatch.java

    import java.lang.reflect.Method;
    
    public class ReflectionDispatch implements Dispatch<MethodInvocation> {
        private final Object target;
    
        public ReflectionDispatch(Object target) {
            this.target = target;
        }
    
        @Override
        public void dispatch(MethodInvocation message) {
            try {
                Method method = message.getMethod();
                method.setAccessible(true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ProxyDispatchAdapterTest.groovy

        private final Dispatch<MethodInvocation> dispatch = Mock()
        private final ProxyDispatchAdapter<ProxyTest> adapter = new ProxyDispatchAdapter<ProxyTest>(dispatch, ProxyTest.class)
    
        def proxyForwardsToDispatch() {
            when:
            adapter.getSource().doStuff('param')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top