- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 24 for BeanDesc (0.05 seconds)
-
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);
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) -
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)));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.9K bytes - Click Count (0) -
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 { /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/ConstructorDesc.java
/** * Interface for handling constructors. * * @author koichik */ public interface ConstructorDesc { /** * Returns the {@link BeanDesc} of the class that owns this constructor. * * @return {@link BeanDesc} */ BeanDesc getBeanDesc(); /** * Returns the constructor. * * @param <T> * The type of the Bean * @return The constructorCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/FieldDesc.java
import java.util.Map; /** * Interface for handling fields. * * @author koichik */ public interface FieldDesc { /** * Returns the {@link BeanDesc} of the class that owns this field. * * @return {@link BeanDesc} */ BeanDesc getBeanDesc(); /** * Returns the field. * * @return the field */ Field getField(); /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/PropertyDesc.java
* the value to be converted * @return the converted value */ <T> T convertIfNeed(Object value); /** * Returns the {@link BeanDesc}. * * @return the {@link BeanDesc} */ BeanDesc getBeanDesc(); /** * Returns {@literal true} if this property is parameterized. * * @return {@literal true} if this property is parameterized */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4.3K bytes - Click Count (0) -
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) -
src/main/java/org/codelibs/core/beans/MethodDesc.java
import java.util.Map; /** * Interface for handling methods. * * @author koichik */ public interface MethodDesc { /** * Returns the {@link BeanDesc} of the class that owns this method. * * @return {@link BeanDesc} */ BeanDesc getBeanDesc(); /** * Returns the method. * * @return the method */ Method getMethod(); /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java
* <p> * This class does not cache instances of {@link ParameterizedClassDesc}. Please obtain {@link ParameterizedClassDesc} via {@link BeanDesc}. * </p> * * @author koichik * @see BeanDesc#getTypeVariables() * @see PropertyDesc#getParameterizedClassDesc() * @see FieldDesc#getParameterizedClassDesc() * @see ConstructorDesc#getParameterizedClassDescs()Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 7.7K bytes - Click Count (0) -
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)