Package | Description |
---|---|
org.apache.commons.beanutils2 |
The Bean Introspection Utilities component of the Apache Commons subproject offers low-level utility classes
that assist in getting and setting property values on Java classes that follow the naming design patterns outlined in
the JavaBeans Specification, as well as mechanisms for dynamically defining and accessing bean properties, using
fluent APIs.
|
Modifier and Type | Method and Description |
---|---|
BeanAccessor<?> |
IndexedPropertyGetterAccessor.at(int index) |
BeanAccessor<?> |
BeanAccessor.get(String propertyName)
Gets the value of the property with name
propertyName from the bean wrapped by this BeanAccessor. |
BeanAccessor<B> |
ClassAccessor.invokeConstructor(Argument<?>... arguments)
Invokes the constructor with the parameter list represented by
arguments on the wrapped class. |
BeanAccessor<B> |
ClassAccessor.invokeExactConstructor(Argument<?>... arguments)
Invokes the constructor with the parameter list represented by
arguments on the wrapped class. |
BeanAccessor<B> |
ClassAccessor.newInstance()
Creates a new instance of type
B by calling the parameterless constructor of the wrapped class. |
BeanAccessor<?> |
MappedPropertyGetterAccessor.of(String key) |
static <B> BeanAccessor<B> |
BeanUtils.on(B bean)
Creates a
BeanAcessor for the given bean, that allows access to the bean's properties and methods. |
BeanAccessor<?> |
ArgumentsAccessor.with(Argument<?>... arguments)
Passes the given arguments to the called constructor or method.
|
<V> BeanAccessor<B> |
BeanPropertySetter.with(V value) |
Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.