Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getConstructor (0.07 sec)

  1. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

            final ConstructorDesc ctor = beanDesc.getConstructorDesc();
            assertThat(ctor, is(notNullValue()));
            assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor()));
            assertThat(ctor.getParameterTypes().length, is(0));
            assertThat(ctor.isPublic(), is(true));
            final MyBean myBean = ctor.newInstance();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java

                    FessWebResourceRoot.class.getName());
    
            // Verify constructor exists with Context parameter
            try {
                FessWebResourceRoot.class.getConstructor(Context.class);
                assertTrue("Constructor with Context parameter exists", true);
            } catch (final NoSuchMethodException e) {
                fail("Constructor with Context parameter should exist");
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

            useMonitor ? "com.google.common.util.concurrent.MonitorBased" : "java.util.concurrent.";
        String className = prefix + queueType + "BlockingQueue";
        Constructor<?> constructor = Class.forName(className).getConstructor(int.class);
        queue = (BlockingQueue<String>) constructor.newInstance(capacity);
    
        strings = new String[capacity];
        for (int i = 0; i < capacity; i++) {
          strings[i] = String.valueOf(Math.random());
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java

        }
    
        public void test_constructorExists() {
            // Verify constructor exists with expected parameters
            try {
                FessActionValidator.class.getConstructor(RequestManager.class, UserMessagesCreator.class, Class[].class);
                assertTrue("Constructor with required parameters exists", true);
            } catch (final NoSuchMethodException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/timer/HotThreadMonitorTargetTest.java

        }
    
        public void test_default_constructor_is_public() throws Exception {
            assertTrue("Default constructor should be public",
                    java.lang.reflect.Modifier.isPublic(HotThreadMonitorTarget.class.getConstructor().getModifiers()));
        }
    
        public void test_expired_method_is_public() throws Exception {
            assertTrue("expired method should be public",
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/ConstructorDesc.java

         */
        BeanDesc getBeanDesc();
    
        /**
         * Returns the constructor.
         *
         * @param <T>
         *            The type of the Bean
         * @return The constructor
         */
        <T> Constructor<T> getConstructor();
    
        /**
         * Returns an array of the parameter types of the constructor.
         *
         * @return An array of the parameter types of the constructor
         */
        Class<?>[] getParameterTypes();
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

        }
    
        public void test_default_constructor_is_public() throws Exception {
            assertTrue("Default constructor should be public",
                    java.lang.reflect.Modifier.isPublic(SystemMonitorTarget.class.getConstructor().getModifiers()));
        }
    
        public void test_expired_method_is_public() throws Exception {
            assertTrue("expired method should be public",
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        }
    
        /**
         *
         */
        @Test(expected = NoSuchConstructorRuntimeException.class)
        public void testGetConstructor() {
            ClassUtil.getConstructor(ClassUtilTest.class, Integer.class);
        }
    
        /**
         *
         */
        @Test(expected = NoSuchFieldRuntimeException.class)
        public void testGetField() {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/internal/Finalizer.java

                  + "inherit thread local values.");
          return null;
        }
      }
    
      private static @Nullable Constructor<Thread> getBigThreadConstructor() {
        try {
          return Thread.class.getConstructor(
              ThreadGroup.class, Runnable.class, String.class, long.class, boolean.class);
        } catch (Throwable t) {
          // Probably pre Java 9. We'll fall back to Thread.inheritableThreadLocals.
          return null;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *             If a matching constructor is not found
         * @see Class#getConstructor(Class...)
         */
        public static <T> Constructor<T> getConstructor(final Class<T> clazz, final Class<?>... argTypes)
                throws NoSuchConstructorRuntimeException {
            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.getConstructor(argTypes);
            } catch (final NoSuchMethodException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top