Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for classLoader (0.09 sec)

  1. 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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         * @param locale the locale
         * @param classLoader the class loader (must not be {@literal null} or empty)
         * @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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

       * disallows certain core JDK classes.
       */
      private void runTestMethod(ClassLoader classLoader) throws Exception {
        ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
    
        Thread.currentThread().setContextClassLoader(classLoader);
        try {
          Class<?> test = classLoader.loadClass(AbstractFutureTest.class.getName());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

         */
        public static ClassLoader getClassLoader(final Class<?> targetClass) {
            assertArgumentNotNull("targetClass", targetClass);
    
            final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
            if (contextClassLoader != null) {
                return contextClassLoader;
            }
    
            final ClassLoader targetClassLoader = targetClass.getClassLoader();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

            assertTrue(exceptionHandled.get());
        }
    
        // Test with a custom ClassLoader to simulate class availability
        public void test_hook_withCustomClassLoader() throws Exception {
            // Create a custom ClassLoader that can control class loading behavior
            ClassLoader customClassLoader = new URLClassLoader(new URL[0], null) {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

       * disallows certain core JDK classes.
       */
      private void runTestMethod(ClassLoader classLoader) throws Exception {
        ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
    
        Thread.currentThread().setContextClassLoader(classLoader);
        try {
          Class<?> test = classLoader.loadClass(AbstractFutureTest.class.getName());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

       * Runs the corresponding {@link FuturesTest} test method in a new classloader that disallows
       * certain core JDK classes.
       */
      private void runTestMethod(ClassLoader classLoader) throws Exception {
        ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader(classLoader);
        try {
          Class<?> test = classLoader.loadClass(FuturesTest.class.getName());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java

        /**
         * @throws Exception
         */
        @Test
        public void test() 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);
    
            final ClassLoaderIterator it = new ClassLoaderIterator(cl3);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K 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 Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top