Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for getBeanDesc (0.12 seconds)

  1. src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java

    /**
     * This class generates {@link BeanDesc}.
     * <p>
     * It returns a {@link BeanDesc} that handles the metadata of the specified JavaBeans.
     * </p>
     *
     * <pre>
     * BeanDesc beanDesc = BeanDescFactory.getBeanDesc(Foo.class);
     * </pre>
     * <p>
     * {@link BeanDesc} is cached. To clear the cache, call {@link DisposableUtil#dispose()}.
     * </p>
     *
     * @author higa
     * @see BeanDesc
     * @see DisposableUtil
     */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

                }
            } catch (final Throwable t) {
                throw new IllegalPropertyRuntimeException(beanDesc.getBeanClass(), propertyName, t);
            }
        }
    
        @Override
        public BeanDesc getBeanDesc() {
            return beanDesc;
        }
    
        @Override
        public final String toString() {
            final StringBuilder buf = new StringBuilder(256);
            buf.append("propertyName=")
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 24 01:52:43 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

            assertArgumentNotNull("annotation", annotation);
    
            final Map<String, Object> map = newHashMap();
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(annotation.annotationType());
            for (final String name : beanDesc.getMethodNames()) {
                final Object v = getProperty(beanDesc, annotation, name);
                if (v != null) {
                    map.put(name, v);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            assertThat(pd.getPropertyType(), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testFieldType() throws Exception {
            BeanDesc bd = BeanDescFactory.getBeanDesc(Hoge.class);
            PropertyDesc pd = bd.getPropertyDesc("foo");
            assertThat(pd.isParameterized(), is(true));
            assertThat(pd.getElementClassOfCollection(), is(sameClass(String.class)));
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            assertThat(myBean.getURL(), is(notNullValue()));
        }
    
        /**
         *
         */
        public void testConvertWithString() {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyDto.class);
            final PropertyDesc pd = beanDesc.getPropertyDesc("myEnum");
            final MyDto dto = new MyDto();
            pd.setValue(dto, "ONE");
            assertEquals(MyEnum.ONE, dto.myEnum);
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 11K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

            assertArgumentNotNull("dest", dest);
            assertArgumentNotNull("option", options);
    
            final BeanDesc srcBeanDesc = BeanDescFactory.getBeanDesc(src.getClass());
            final BeanDesc destBeanDesc = BeanDescFactory.getBeanDesc(dest.getClass());
            for (final PropertyDesc srcPropertyDesc : srcBeanDesc.getPropertyDescs()) {
                final String srcPropertyName = srcPropertyDesc.getPropertyName();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  7. README.md

    import org.codelibs.core.beans.factory.BeanDescFactory;
    import org.codelibs.core.beans.util.BeanUtil;
    import org.codelibs.core.beans.util.CopyOptions;
    
    // Bean metadata introspection
    BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
    PropertyDesc nameProperty = beanDesc.getPropertyDesc("name");
    nameProperty.setValue(bean, "John Doe");
    
    // Bean copying with flexible options
    BeanUtil.copyBeanToBean(source, destination);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/beans/BeanDesc.java

    /**
     * Interface for handling JavaBeans metadata.
     * <p>
     * Instances of {@link BeanDesc} are obtained from {@link BeanDescFactory}.
     * </p>
     *
     * <pre>
     * BeanDesc beanDesc = BeanDescFactory.getBeanDesc(Foo.class);
     * </pre>
     * <p>
     * From the obtained {@link BeanDesc}, you can retrieve metadata of the properties, fields, constructors, and methods of the target JavaBeans.
     * </p>
     *
     * <pre>
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 24 01:52:43 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

         *
         * @param target The target object.
         * @return The URL string, or null if not found.
         */
        private String getUrl(final Object target) {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(target.getClass());
            final PropertyDesc sessionIdProp = beanDesc.getPropertyDesc(URL);
            final Object sessionId = sessionIdProp.getValue(target);
            return sessionId == null ? null : sessionId.toString();
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Nov 20 08:40:57 GMT 2025
    - 34.3K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4HttpClient.java

                    .setDefaultRequestConfig(requestConfigBuilder.build())
                    .build();
            if (!httpClientPropertyMap.isEmpty()) {
                final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(closeableHttpClient.getClass());
                for (final Map.Entry<String, Object> entry : httpClientPropertyMap.entrySet()) {
                    final String propertyName = entry.getKey();
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:52 GMT 2026
    - 54.4K bytes
    - Click Count (0)
Back to Top