[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Kernel Class Constructor Access Modifier

alesj do-not-reply at jboss.com
Tue Jun 23 10:07:38 EDT 2009


"gurkanerdogdu" wrote : 
  | I was looking for the configuration and booting of the Kernel instance. There is a class KernelFactory to create Kernel instances. It is a singleton factory class for Kernel. But then why Kernel class has a public constructor?
  | 
  | Is it more reasonable to create protected constructor for Kernel class?
  | 
I don't think it really matters.
Or why do you think it's important?

I think the factory here just acts as an object that knows how to provide you with default configured Kernel.
But you can instantiate it yourself (hence public ctor) and configure it differently.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239436#4239436

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239436



More information about the jboss-dev-forums mailing list