Confusion on instance factroy method used in ch-03 listing 3-6

10 views
Skip to first unread message

AMIT TIWARI

unread,
Jan 14, 2018, 8:38:53 AM1/14/18
to Getting started with Spring Framework
Hi Ashish,

I have one confusion regarding instance factory method. As per chapter 02 listing 2-6 - If a class defines an instance factory method, the class must define a public constructor.Now when I came to ch 03 listiing 3-5 the ContollerFactory class defines an instance factory method ,But why it does not defines a public constructor ?

Please let me know the reason.

Thanks,
Amit
Reply all
Reply to author
Forward
0 new messages