| org.hibernate.proxy.ProxyFactory
All known Subclasses: org.hibernate.proxy.pojo.javassist.JavassistProxyFactory, org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory, org.hibernate.proxy.map.MapProxyFactory, org.hibernate.proxy.dom4j.Dom4jProxyFactory,
ProxyFactory | public interface ProxyFactory (Code) | | Contract for run-time, proxy-based lazy initialization proxies.
author: Gavin King |
postInstantiate | public void postInstantiate(String entityName, Class persistentClass, Set interfaces, Method getIdentifierMethod, Method setIdentifierMethod, AbstractComponentType componentIdType) throws HibernateException(Code) | | Called immediately after instantiation of this factory.
Essentially equivalent to contructor injection, but contracted
here via interface.
Parameters: entityName - The name of the entity for which this factory shouldgenerate proxies. Parameters: persistentClass - The entity class for which to generate proxies;not always the same as the entityName. Parameters: interfaces - The interfaces to expose in the generated proxy;HibernateProxy is already included in this collection. Parameters: getIdentifierMethod - Reference to the identifier getter method;invocation on this method should not force initialization Parameters: setIdentifierMethod - Reference to the identifier setter method;invocation on this method should not force initialization Parameters: componentIdType - For composite identifier types, a reference tothe org.hibernate.type.ComponentType type of the identifierproperty; again accessing the id should generally not causeinitialization - but need to bear in mind mappings. throws: HibernateException - Indicates a problem completing postinstantiation initialization. |
|
|