Class BeanMappers

  extended byorg.jbeanmapper.BeanMappers

public class BeanMappers
extends java.lang.Object

This class consists exclusively of static methods that operate on or return BeanMappers. It contains "wrappers" which return a new BeanMapper backed by a specified BeanMapper.

Brian Pugh

Method Summary
static BeanMapper unmodifiableBeanMapper(BeanMapper beanMapper)
          Returns an unmodifiable view of the specified BeanMapper.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static BeanMapper unmodifiableBeanMapper(BeanMapper beanMapper)
Returns an unmodifiable view of the specified BeanMapper. This method allows modules to provide users with "read-only" access to BeanMappers. Mapping operations on the returned BeanMapper "read through" to the specified BeanMapper, and attempts to register bean mappings or set a configurator on the returned BeanMapper result in an UnsupportedOperationException.

beanMapper - the BeanMapper for which an unmodifiable view is to be returned.
an unmodifiable view of the specified BeanMapper.