- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getBeanDesc (0.09 sec)
-
src/test/java/org/codelibs/core/beans/factory/BeanDescFactoryTest.java
final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class); assertThat(BeanDescFactory.getBeanDesc(MyBean.class), is(sameInstance(beanDesc))); } /** * @throws Exception */ @Test public void testClear() throws Exception { final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class); BeanDescFactory.clear();
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java
final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final MethodDesc foo = beanDesc.getMethodDesc("foo"); assertThat(foo, is(notNullValue())); assertThat(foo.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(foo.getMethod(), is(MyBean.class.getMethod("foo"))); assertThat(foo.getMethodName(), is("foo")); assertThat(foo.getParameterTypes().length, is(0));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java
final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final ConstructorDesc ctor = beanDesc.getConstructorDesc(); assertThat(ctor, is(notNullValue())); assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor())); assertThat(ctor.getParameterTypes().length, is(0)); assertThat(ctor.isPublic(), is(true));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.9K bytes - Viewed (0) -
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) -
src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java
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()} * を呼び出してください。 * </p> * * @author higa * @see BeanDesc * @see DisposableUtil */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.9K bytes - Viewed (0) -
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);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0) -
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)));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 13.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java
} parameterizedClassDesc = ParameterizedClassDescFactory.createParameterizedClassDesc(method, beanDesc.getTypeVariables()); } @Override public BeanDesc getBeanDesc() { return beanDesc; } @Override public Method getMethod() { return method; } @Override public String getMethodName() { return methodName; }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 7.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
*/ @Test public void testHOGE() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc hoge = beanDesc.getFieldDesc("HOGE"); assertThat(hoge.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(hoge.getField(), is(MyBean.class.getDeclaredField("HOGE"))); assertThat(hoge.getFieldName(), is("HOGE"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5K bytes - Viewed (0) -
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); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.1K bytes - Viewed (0)