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
Modifier and TypeFieldDescriptionprivate static final org.apache.commons.beanutils.ContextClassLoaderLocal<NullAwareBeanUtilsBean>
ContainsNullAwareBeanUtilsBean
instances indexed by context classloader. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyProperty
(Object dest, String name, Object value) static NullAwareBeanUtilsBean
Gets 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_CLASSLOADERContainsNullAwareBeanUtilsBean
instances 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:
copyProperty
in classorg.apache.commons.beanutils.BeanUtilsBean
- Throws:
IllegalAccessException
InvocationTargetException
-