- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for BeanDesc (0.08 sec)
-
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>
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/AnnotationUtil.java
* * @param beanDesc the {@link BeanDesc} representing the annotation * @param annotation the annotation * @param name the name of the element * @return the value of the annotation element */ protected static Object getProperty(final BeanDesc beanDesc, final Annotation annotation, final String name) { final MethodDesc methodDesc = beanDesc.getMethodDescNoException(name);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.6K bytes - Viewed (0) -
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 13.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java
import java.util.concurrent.ConcurrentMap; import org.codelibs.core.beans.BeanDesc; import org.codelibs.core.beans.impl.BeanDescImpl; import org.codelibs.core.misc.DisposableUtil; /** * 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>
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java
final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final PropertyDesc propDesc = beanDesc.getPropertyDesc("jjj"); propDesc.setValue(myBean, null); } /** * @throws Exception */ @Test(expected = IllegalPropertyRuntimeException.class) public void testSetValue_invalidType() throws Exception { final MyBean myBean = new MyBean();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
* The setter method. * @param beanDesc * The {@link BeanDesc}. Must not be {@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 Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
import org.codelibs.core.lang.ClassUtil; import org.codelibs.core.lang.FieldUtil; import org.codelibs.core.lang.StringUtil; /** * Implementation class of {@link BeanDesc}. * * @author higa */ public class BeanDescImpl implements BeanDesc { /** Empty object array */ protected static final Object[] EMPTY_ARGS = new Object[0]; /** Empty class array */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 25.8K bytes - Viewed (1) -
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);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/util/BeanUtil.java
assertArgumentNotNull("src", src); 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()) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.5K bytes - Viewed (0)