Called immediately after instantiation of this factory.

Namespace: NHibernate.Proxy
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
void PostInstantiate(
	string entityName,
	Type persistentClass,
	ISet<Type> interfaces,
	MethodInfo getIdentifierMethod,
	MethodInfo setIdentifierMethod,
	IAbstractComponentType componentIdType
)
Visual Basic
Sub PostInstantiate ( _
	entityName As String, _
	persistentClass As Type, _
	interfaces As ISet(Of Type), _
	getIdentifierMethod As MethodInfo, _
	setIdentifierMethod As MethodInfo, _
	componentIdType As IAbstractComponentType _
)
Visual C++
void PostInstantiate(
	String^ entityName, 
	Type^ persistentClass, 
	ISet<Type^>^ interfaces, 
	MethodInfo^ getIdentifierMethod, 
	MethodInfo^ setIdentifierMethod, 
	IAbstractComponentType^ componentIdType
)

Parameters

entityName
Type: System..::..String
The name of the entity for which this factory should generate proxies.
persistentClass
Type: System..::..Type
The entity class for which to generate proxies; not always the same as the entityName.
interfaces
Type: Iesi.Collections.Generic..::..ISet<(Of <(<'Type>)>)>
The interfaces to expose in the generated proxy; INHibernateProxy is already included in this collection.
getIdentifierMethod
Type: System.Reflection..::..MethodInfo
Reference to the identifier getter method; invocation on this method should not force initialization
setIdentifierMethod
Type: System.Reflection..::..MethodInfo
Reference to the identifier setter method; invocation on this method should not force initialization
componentIdType
Type: NHibernate.Type..::..IAbstractComponentType
For composite identifier types, a reference to the type of the identifier property; again accessing the id should generally not cause initialization - but need to bear in mind key-many-to-one mappings.

Remarks

Essentially equivalent to constructor injection, but contracted here via interface.

Exceptions

ExceptionCondition
NHibernate..::..HibernateException Indicates a problem completing post

See Also