Package com.interface21.beans

This package contains interfaces and classes for manipulating Java beans.


Interface Summary
BeanWrapper The central interface of the Interface21 JavaBeans infrastructure.
PropertyValues Object containing 0 or more PropertyValues comprising one update.
PropertyValuesValidator Interface that can be implemented by application code that needs to validate PropertyValues.
SortDefinition Definition for sorting bean instances by a property.

Class Summary
AbstractVetoableChangeListener Convenience superclass for JavaBeans VetoableChangeListeners.
BeanUtils Static convenience methods for JavaBeans.
BeanWrapperImpl Default implementation of the BeanWrapper interface that should be sufficient for all normal uses.
MutablePropertyValues Default implementation of the PropertyValues interface.
MutableSortDefinition Mutable implementation of SortDefinition.
PropertyComparator PropertyComparator performs a comparison of two beans, using the specified bean property via a BeanWrapper.
PropertyValue Class to hold information and value for an individual property.

Exception Summary
BeansException Abstract superclass for all exceptions thrown in the beans package and subpackages.
ErrorCodedPropertyVetoException Exception used by PropertyVetoException to wrap failures.
FatalBeanException Thrown on an unrecoverable problem encountered in the beans packages or sub-packages: e.g. bad class or field.
InvalidPropertyValuesException Exception thrown when PropertyValues are flagged as invalid by a PropertyValuesValidator.
MethodInvocationException Thrown when a method getter or setter throws an exception (analogous to an InvocationTargetException)
NotWritablePropertyException Exception thrown on an attempt to set the value of a property that isn't writable, because there's no setter method.
NullValueInNestedPathException Exception thrown when navigation of a valid nested property path encounters a null pointer exception.
ParameterizableErrorCodedPropertyVetoException Exception used by PropertyVetosException to wrap failures.
PropertyAccessException Superclass for exceptions related to a property access, such as type mismatch or invocation target exception.
PropertyVetoExceptionsException Combined exception, composed of individual binding exceptions.
TypeMismatchException Exception thrown on a type mismatch when trying to set a property.

Package com.interface21.beans Description

This package contains interfaces and classes for manipulating Java beans. It is used by most other Spring packages.

A BeanWrapper object may be used to set and get bean properties, singly or in bulk.

The classes in this package are discussed in Chapter 11 of Expert One-On-One J2EE Design and Development by Rod Johnson (Wrox, 2002).

Rod Johnson and Spring contributors 2001-2003.