Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for ClassLoader (0.13 sec)

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

        URL url2 = new URL("file:/b");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url1, url2}, null);
        assertThat(ClassPath.getClassPathEntries(classloader))
            .containsExactly(new File("/a"), classloader, new File("/b"), classloader);
      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_urlClassLoader_withParent() throws Exception {
    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

        Closeable frq = (Closeable) sepFrqUserFrqF.get(null);
        frq.close();
    
        return new WeakReference<ClassLoader>(sepLoader);
      }
    
      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: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testIsAncestor() throws Exception {
            final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null);
            final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1);
            final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2);
    
            assertThat(ClassLoaderUtil.isAncestor(cl3, cl2), is(true));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EnumsTest.java

      }
    
      @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. src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java

            assertArgumentNotNull("classLoader", classLoader);
            this.classLoader = classLoader;
        }
    
        @Override
        public boolean hasNext() {
            return classLoader != null;
        }
    
        @Override
        public ClassLoader next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final ClassLoader result = classLoader;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         * @param locale
         *            ロケール
         * @param classLoader
         *            クラスローダ。{@literal null}や空文字列であってはいけません
         * @return {@link ResourceBundle}
         * @see ResourceBundle#getBundle(String, Locale, ClassLoader)
         */
        public static final ResourceBundle getBundle(final String name, final Locale locale, final ClassLoader classLoader) {
            assertArgumentNotNull("name", name);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            ResolveTask(
                    ClassLoader classLoader,
                    CountDownLatch latch,
                    Artifact artifact,
                    RepositorySystemSession session,
                    List<ArtifactRepository> remoteRepositories,
                    ArtifactResolutionResult result) {
                this.classLoader = classLoader;
                this.latch = latch;
                this.artifact = artifact;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        URL url2 = new URL("file:/b");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url1, url2}, null);
        assertThat(ClassPath.getClassPathEntries(classloader))
            .containsExactly(new File("/a"), classloader, new File("/b"), classloader);
      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_urlClassLoader_withParent() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

            bind(SisuDiBridgeModule.class).toInstance(this);
            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            if (classLoader == null) {
                classLoader = getClass().getClassLoader();
            }
            if (discover) {
                injector.discover(classLoader);
            }
        }
    
        private void bindScope(
                InjectorImpl injector,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java

            HtmlTagBasedGenerator generator = new HtmlTagBasedGenerator();
            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            File outputFile = File.createTempFile("generator_", ".png");
    
            String imagePath = "thumbnail/600x400.png";
            try (ImageInputStream input = ImageIO.createImageInputStream(classLoader.getResourceAsStream(imagePath))) {
                generator.saveImage(input, outputFile);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top