Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for beanDesc (0.16 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/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final PropertyDesc propDesc = beanDesc.getPropertyDesc("URL");
            propDesc.setValue(myBean, "http://www.seasar.org");
            assertThat(myBean.getURL(), is(notNullValue()));
        }
    
        /**
         *
         */
        public void testConvertWithString() {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyDto.class);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

         *            setterメソッド
         * @param beanDesc
         *            {@link BeanDesc}。{@literal null}であってはいけません
         */
        public PropertyDescImpl(final String propertyName, final Class<?> propertyType, final Method readMethod, final Method writeMethod,
                final BeanDesc beanDesc) {
            this(propertyName, propertyType, readMethod, writeMethod, null, beanDesc);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
            assertThat((Integer) beanDesc.newInstance(10), is(10));
            assertThat((Integer) beanDesc.newInstance("10"), is(10));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testNewInstance2() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top