[Springnet-commits] Spring.Net/doc/reference/src objects.xml, 1.121, 1.122
Brought to you by:
aseovic,
markpollack
From: Mark P. <mar...@us...> - 2008-04-03 02:17:51
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24872 Modified Files: objects.xml Log Message: SPRNET-826 - Add section about manually registering objects with the container ("registersingleton" etc.) SPRNET-775 - Document using a custom IFactoryObject to help with configuring embedded resources Index: objects.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/objects.xml,v retrieving revision 1.121 retrieving revision 1.122 diff -C2 -d -r1.121 -r1.122 *** objects.xml 3 Apr 2008 01:14:26 -0000 1.121 --- objects.xml 3 Apr 2008 02:17:46 -0000 1.122 *************** *** 3803,3806 **** --- 3803,3827 ---- </itemizedlist></para> + <para>A sub-interface of <classname>IObjectFactory</classname>, + <classname>IConfigurableObjectFactory</classname> adds some convenient + methods such as</para> + + <itemizedlist> + <listitem> + <para><literal>void RegisterSingleton(string name, object + objectInstance)</literal> : Register the given existing object as + singleton in the object factory under the given object name.</para> + </listitem> + + <listitem> + <para><literal>void RegisterAlias(string name, string + theAlias)</literal>; Given an object name, create an alias.</para> + </listitem> + </itemizedlist> + + <para>Check the SDK docs for additional details on + IConfigurableObjectFactory methods and properties and the full + <classname>IObjectFactory</classname> class hierarchy.</para> + <sect2> <title>Obtaining an <classname>IFactoryObject</classname>, not its *************** *** 4649,4653 **** described in <xref linkend="objects-advancedproperty-setting" /> for the <classname>PropertyRetrievingFactoryObject</classname> and ! <classname>FieldRetrievingFactoryObject</classname>.</para> <para>Finally, there is sometimes a need to ask a container for an --- 4670,4679 ---- described in <xref linkend="objects-advancedproperty-setting" /> for the <classname>PropertyRetrievingFactoryObject</classname> and ! <classname>FieldRetrievingFactoryObject</classname>. An additional use ! of creating an custom IFactoryObject implementation is to retrieve an ! object from an embedded resource file and use it to set another objects ! dependency. An example of this is provided <ulink ! url="http://jira.springframework.org/browse/SPRNET-133#action_19743">here</ulink>. ! </para> <para>Finally, there is sometimes a need to ask a container for an |