Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for beanDesc (0.05 sec)

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

         * @throws Exception
         */
        @Test
        public void testBar() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc bar = beanDesc.getMethodDesc("bar", String.class);
            assertThat(bar, is(notNullValue()));
            assertThat(bar.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(bar.getMethod(), is(MyBean.class.getDeclaredMethod("bar", String.class)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

         * アノテーションの要素の値を返します。
         *
         * @param beanDesc
         *            アノテーションを表す{@link BeanDesc}
         * @param annotation
         *            アノテーション
         * @param name
         *            要素の名前
         * @return アノテーションの要素の値
         */
        protected static Object getProperty(final BeanDesc beanDesc, final Annotation annotation, final String name) {
            final MethodDesc methodDesc = beanDesc.getMethodDescNoException(name);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

        /**
         * インスタンスを構築します。
         *
         * @param beanDesc
         *            このメソッドを所有するクラスの{@link BeanDesc}。{@literal null}であってはいけません
         * @param constructor
         *            コンストラクタ。{@literal null}であってはいけません
         */
        public ConstructorDescImpl(final BeanDesc beanDesc, final Constructor<?> constructor) {
            assertArgumentNotNull("beanDesc", beanDesc);
            assertArgumentNotNull("constructor", constructor);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

        @Test
        public void test1ArgConstructor() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final ConstructorDesc ctor = beanDesc.getConstructorDesc(String.class);
            assertThat(ctor, is(notNullValue()));
            assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor(String.class)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

         * インスタンスを構築します。
         *
         * @param beanDesc
         *            このメソッドを所有するクラスの{@link BeanDesc}。{@literal null}であってはいけません
         * @param method
         *            メソッド。{@literal null}であってはいけません
         */
        public MethodDescImpl(final BeanDesc beanDesc, final Method method) {
            assertArgumentNotNull("beanDesc", beanDesc);
            assertArgumentNotNull("method", method);
    
            this.beanDesc = beanDesc;
            this.method = method;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

            protected T get() {
                return instance;
            }
    
            protected void destroy() {
                final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(instance.getClass());
                for (final String methodName : beanDesc.getMethodNames()) {
                    final MethodDesc methodDesc = beanDesc.getMethodDescNoException(methodName);
                    if (methodDesc != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/factory/BeanDescFactoryTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testClear() throws Exception {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
            BeanDescFactory.clear();
            assertThat(BeanDescFactory.getBeanDesc(MyBean.class), is(not(sameInstance(beanDesc))));
        }
    
        /**
         *
         */
        public static class MyBean {
    
            /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final FieldDesc aaa = beanDesc.getFieldDesc("aaa");
            aaa.getStaticFieldValue();
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = FieldNotStaticRuntimeException.class)
        public void testAaa_SetStaticFieldValue() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java

    import org.codelibs.core.beans.BeanDesc;
    import org.codelibs.core.beans.impl.BeanDescImpl;
    import org.codelibs.core.misc.DisposableUtil;
    
    /**
     * {@link BeanDesc}を生成するクラスです。
     * <p>
     * 指定されたJavaBeansのメタデータを扱う{@link BeanDesc}を返します。
     * </p>
     *
     * <pre>
     * BeanDesc beanDesc = BeanDescFactory.getBeanDesc(Foo.class);
     * </pre>
     * <p>
     * {@link BeanDesc}はキャッシュされます。 キャッシュをクリアするには{@link DisposableUtil#dispose()}
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java

    /**
     * フィールの型やメソッドの引数型、戻り値型を表現する{@link ParameterizedClassDesc}を作成するファクトリです。
     * <p>
     * このクラスでは{@link ParameterizedClassDesc}のインスタンスをキャッシュしません。 {@link BeanDesc}経由で
     * {@link ParameterizedClassDesc}を取得するようにしてください。
     * </p>
     *
     * @author koichik
     * @see BeanDesc#getTypeVariables()
     * @see PropertyDesc#getParameterizedClassDesc()
     * @see FieldDesc#getParameterizedClassDesc()
     * @see ConstructorDesc#getParameterizedClassDescs()
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top