org.granite.messaging.amf.io.util.instantiator
Class AbstractInstantiator<T>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.granite.messaging.amf.io.util.instantiator.AbstractInstantiator<T>
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>
Direct Known Subclasses:
BigDecimalInstantiator, BigIntegerInstantiator, EnumInstantiator, LongInstantiator, MathContextInstantiator

public abstract class AbstractInstantiator<T>
extends HashMap<String,Object>

Author:
Franck WOLFF
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
protected AbstractInstantiator()
           
 
Method Summary
 void addReferer(Object referer, Property property)
           
abstract  List<String> getOrderedFieldNames()
           
abstract  T newInstance()
           
 T resolve()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AbstractInstantiator

protected AbstractInstantiator()
Method Detail

newInstance

public abstract T newInstance()
                       throws IOException,
                              ClassNotFoundException,
                              InstantiationException,
                              IllegalAccessException
Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException

getOrderedFieldNames

public abstract List<String> getOrderedFieldNames()

addReferer

public void addReferer(Object referer,
                       Property property)

resolve

public T resolve()
          throws IOException,
                 ClassNotFoundException,
                 InstantiationException,
                 IllegalAccessException
Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException