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
Fields Modifier and Type Field Description private static org.apache.commons.beanutils.ContextClassLoaderLocal<NullAwareBeanUtilsBean>
BEANS_BY_CLASSLOADER
ContainsNullAwareBeanUtilsBean
instances indexed by context classloader.
-
Constructor Summary
Constructors Constructor Description NullAwareBeanUtilsBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyProperty(Object dest, String name, Object value)
static NullAwareBeanUtilsBean
getInstance()
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 Detail
-
BEANS_BY_CLASSLOADER
private static final org.apache.commons.beanutils.ContextClassLoaderLocal<NullAwareBeanUtilsBean> BEANS_BY_CLASSLOADER
ContainsNullAwareBeanUtilsBean
instances indexed by context classloader.
-
-
Method Detail
-
getInstance
public static NullAwareBeanUtilsBean 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
-
-