Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for handleInvocation (0.28 sec)

  1. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

     * Object#hashCode} and {@link Object#toString}. For example:
     *
     * <pre>
     * class Unsupported extends AbstractInvocationHandler {
     *   protected Object handleInvocation(Object proxy, Method method, Object[] args) {
     *     throw new UnsupportedOperationException();
     *   }
     * }
     *
     * CharSequence unsupported = Reflection.newProxy(CharSequence.class, new Unsupported());
     * </pre>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        T proxy =
            Reflection.newProxy(
                interfaceType,
                new AbstractInvocationHandler() {
                  @Override
                  protected Object handleInvocation(Object p, Method m, @Nullable Object[] args)
                      throws Throwable {
                    throw exception;
                  }
                });
        T wrapper = wrapperFunction.apply(proxy);
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        T proxy =
            Reflection.newProxy(
                interfaceType,
                new AbstractInvocationHandler() {
                  @Override
                  protected Object handleInvocation(Object p, Method m, @Nullable Object[] args)
                      throws Throwable {
                    throw exception;
                  }
                });
        T wrapper = wrapperFunction.apply(proxy);
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          implements Serializable {
        final Object delegate;
    
        DelegatingInvocationHandler(Object delegate) {
          this.delegate = checkNotNull(delegate);
        }
    
        @Override
        protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
          return method.invoke(delegate, args);
        }
    
        @Override
        public String toString() {
          return "some arbitrary string";
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          implements Serializable {
        final Object delegate;
    
        DelegatingInvocationHandler(Object delegate) {
          this.delegate = checkNotNull(delegate);
        }
    
        @Override
        protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
          return method.invoke(delegate, args);
        }
    
        @Override
        public String toString() {
          return "some arbitrary string";
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/DummyProxy.java

        private final TypeToken<?> interfaceType;
    
        DummyHandler(TypeToken<?> interfaceType) {
          this.interfaceType = interfaceType;
        }
    
        @Override
        protected @Nullable Object handleInvocation(
            Object proxy, Method method, @Nullable Object[] args) {
          Invokable<?, ?> invokable = interfaceType.method(method);
          ImmutableList<Parameter> params = invokable.getParameters();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

        private final TypeToken<?> interfaceType;
    
        DummyHandler(TypeToken<?> interfaceType) {
          this.interfaceType = interfaceType;
        }
    
        @Override
        protected @Nullable Object handleInvocation(
            Object proxy, Method method, @Nullable Object[] args) {
          Invokable<?, ?> invokable = interfaceType.method(method);
          ImmutableList<Parameter> params = invokable.getParameters();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

          // using Proxy so that we can have Java 7 compliant code.
          return Reflection.newProxy(
              rawType,
              new AbstractInvocationHandler() {
                @Override
                public Object handleInvocation(Object proxy, Method method, Object[] args) {
                  // Crude, but acceptable until we can use Java 8.  Other
                  // methods have default implementations, and it is hard to
                  // distinguish.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java

          // using Proxy so that we can have Java 7 compliant code.
          return Reflection.newProxy(
              rawType,
              new AbstractInvocationHandler() {
                @Override
                public Object handleInvocation(Object proxy, Method method, Object[] args) {
                  // Crude, but acceptable until we can use Java 8.  Other
                  // methods have default implementations, and it is hard to
                  // distinguish.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        private final Class<?> interfaceType;
    
        FreshInvocationHandler(Class<?> interfaceType) {
          this.interfaceType = interfaceType;
        }
    
        @Override
        @CheckForNull
        protected Object handleInvocation(Object proxy, Method method, @Nullable Object[] args) {
          return interfaceMethodCalled(interfaceType, method);
        }
    
        @Override
        public int hashCode() {
          return identity;
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
Back to top