Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getClassLoader (0.16 sec)

  1. guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()))
            .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader()))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return true;
        }
      }
    
      private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception {
        final ClassLoader myLoader = getClass().getClassLoader();
        URLClassLoader sepLoader = new URLClassLoader(getClassPathUrls(), myLoader.getParent());
        // sepLoader is the loader that we will use to load the parallel FinalizableReferenceQueue (FRQ)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()))
            .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader()))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EnumsTest.java

        assertEquals("BAR", bar.getName());
        assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Class.getClassLoader()
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java

                plexusConfig = plexusConfig.getChild(request.getConfigurationElement());
            }
    
            ClassLoader classLoader = request.getClassLoader();
            if (classLoader == null) {
                classLoader = request.getBean().getClass().getClassLoader();
            }
    
            BeanExpressionEvaluator evaluator = new BeanExpressionEvaluator(request);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jConfigurationFactory.java

            String slf4jBinding = loggerFactory.getClass().getCanonicalName();
    
            try {
                Enumeration<URL> resources =
                        Slf4jConfigurationFactory.class.getClassLoader().getResources(RESOURCE);
    
                while (resources.hasMoreElements()) {
                    URL resource = resources.nextElement();
                    try {
                        InputStream is = resource.openStream();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                logger.warn("Failed to evaluate groovy script: {} => {}", template, paramMap, e);
                return null;
            } finally {
                final GroovyClassLoader loader = groovyShell.getClassLoader();
                loader.clearCache();
            }
        }
    
        @Override
        protected String getName() {
            return "groovy";
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

         */
        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;
                        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/Resources.java

      public static URL getResource(String resourceName) {
        ClassLoader loader =
            MoreObjects.firstNonNull(
                Thread.currentThread().getContextClassLoader(), Resources.class.getClassLoader());
        URL url = loader.getResource(resourceName);
        checkArgument(url != null, "resource %s not found.", resourceName);
        return url;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

            try {
                ToolchainsBuilderResult result = builder.build(ToolchainsBuilderRequest.builder()
                        .session((Session) java.lang.reflect.Proxy.newProxyInstance(
                                Session.class.getClassLoader(),
                                new Class[] {Session.class},
                                (Object proxy, Method method, Object[] args) -> {
                                    if ("getSystemProperties".equals(method.getName())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top