dsto.dfc.databeans.io
Class LazyTypeMap

java.lang.Object
  extended by dsto.dfc.collections.TypeMap
      extended by dsto.dfc.databeans.io.LazyTypeMap

public final class LazyTypeMap
extends TypeMap

Extends TypeMap to add lazy creation of the value mapped to a class. If a value retrieved by get () is a string, then it is treated as a class name, instantiated using the default constructor, and substituted as the mapped value. This can be used to defer loading of codecs that are specific to a given environment eg AWT, SWT, etc.

Version:
$Revision$
Author:
mpp
See Also:
LazyElementMap

Constructor Summary
LazyTypeMap()
           
LazyTypeMap(LazyTypeMap map)
           
 
Method Summary
 Object get(Class type)
           
 
Methods inherited from class dsto.dfc.collections.TypeMap
put, put, remove, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyTypeMap

public LazyTypeMap()

LazyTypeMap

public LazyTypeMap(LazyTypeMap map)
Method Detail

get

public Object get(Class type)
Overrides:
get in class TypeMap


Copyright © 2008 Commonwealth of Australia