Package org.oxerr.commons.ws.rs.bean
Class NullAwareBeanUtilsBean
java.lang.Object
org.apache.commons.beanutils.BeanUtilsBean
org.oxerr.commons.ws.rs.bean.NullAwareBeanUtilsBean
public class NullAwareBeanUtilsBean
extends org.apache.commons.beanutils.BeanUtilsBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.beanutils.ContextClassLoaderLocal<NullAwareBeanUtilsBean>ContainsNullAwareBeanUtilsBeaninstances indexed by context classloader. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyProperty(Object dest, String name, Object value) static NullAwareBeanUtilsBeanGets the instance which provides the functionality forBeanUtils.Methods inherited from class org.apache.commons.beanutils.BeanUtilsBean
cloneBean, convert, copyProperties, describe, getArrayProperty, getConvertUtils, getIndexedProperty, getIndexedProperty, getMappedProperty, getMappedProperty, getNestedProperty, getProperty, getPropertyUtils, getSimpleProperty, initCause, populate, setInstance, setProperty
-
Field Details
-
BEANS_BY_CLASSLOADER
private static final org.apache.commons.beanutils.ContextClassLoaderLocal<NullAwareBeanUtilsBean> BEANS_BY_CLASSLOADERContainsNullAwareBeanUtilsBeaninstances indexed by context classloader.
-
-
Constructor Details
-
NullAwareBeanUtilsBean
public NullAwareBeanUtilsBean()
-
-
Method Details
-
getInstance
Gets the instance which provides the functionality forBeanUtils. This is a pseudo-singleton - an single instance is provided per (thread) context classloader. This mechanism provides isolation for web apps deployed in the same container.- Returns:
- The (pseudo-singleton) BeanUtils bean instance
-
copyProperty
public void copyProperty(Object dest, String name, Object value) throws IllegalAccessException, InvocationTargetException - Overrides:
copyPropertyin classorg.apache.commons.beanutils.BeanUtilsBean- Throws:
IllegalAccessExceptionInvocationTargetException
-