org.granite.hibernate
Class HibernateProxyInstantiator

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<HibernateProxy>
              extended by org.granite.hibernate.HibernateProxyInstantiator
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class HibernateProxyInstantiator
extends AbstractInstantiator<HibernateProxy>

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
HibernateProxyInstantiator(ConcurrentHashMap<String,ProxyFactory> proxyFactories, String detachedState)
           
 
Method Summary
protected  Serializable getId()
           
 List<String> getOrderedFieldNames()
           
 HibernateProxy newInstance()
           
protected  ProxyFactory newProxyFactory(String initializerClassName)
           
 void readId(ObjectInput in)
           
 
Methods inherited from class org.granite.messaging.amf.io.util.instantiator.AbstractInstantiator
addReferer, 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

HibernateProxyInstantiator

public HibernateProxyInstantiator(ConcurrentHashMap<String,ProxyFactory> proxyFactories,
                                  String detachedState)
Method Detail

readId

public void readId(ObjectInput in)
            throws IOException,
                   ClassNotFoundException
Throws:
IOException
ClassNotFoundException

getId

protected Serializable getId()

getOrderedFieldNames

public List<String> getOrderedFieldNames()
Specified by:
getOrderedFieldNames in class AbstractInstantiator<HibernateProxy>

newInstance

public HibernateProxy newInstance()
                           throws IOException,
                                  ClassNotFoundException,
                                  InstantiationException
Specified by:
newInstance in class AbstractInstantiator<HibernateProxy>
Throws:
IOException
ClassNotFoundException
InstantiationException

newProxyFactory

protected ProxyFactory newProxyFactory(String initializerClassName)