Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for newProxyInstance (0.06 seconds)

  1. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

            interfaceClasses.add(itf);
          }
        }
        // Make the proxy serializable to work with SerializableTester
        interfaceClasses.add(Serializable.class);
        Object dummy =
            Proxy.newProxyInstance(
                interfaceClasses.iterator().next().getClassLoader(),
                interfaceClasses.toArray(new Class<?>[interfaceClasses.size()]),
                new DummyHandler(interfaceType));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 22:10:29 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

         * separator which should not be part of the groupId or artifactId.
         */
        private static Path createPathProxy(String value) {
            return (Path) Proxy.newProxyInstance(
                    ExclusionArtifactFilter.class.getClassLoader(), new Class[] {Path.class}, (proxy1, method, args) -> {
                        if ("toString".equals(method.getName())) {
                            return value;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

        return Reflection.newProxy(List.class, new SubHandler2(delegate));
      }
    
      private static Object newProxyWithEqualsForInterfaces(Class<?>... interfaces) {
        return Proxy.newProxyInstance(
            AbstractInvocationHandlerTest.class.getClassLoader(),
            interfaces,
            new DelegatingInvocationHandlerWithEquals("a string"));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 28 02:48:50 GMT 2024
    - 5.7K bytes
    - Click Count (0)
  4. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<Protocol>,
      ) {
        val names = alpnProtocolNames(protocols)
    
        try {
          val alpnProvider =
            Proxy.newProxyInstance(
              Platform::class.java.classLoader,
              arrayOf(clientProviderClass, serverProviderClass),
              AlpnProvider(names),
            )
          putMethod.invoke(null, sslSocket, alpnProvider)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6.1K bytes
    - Click Count (0)
Back to Top