"Define an interface for creating an object, but let subclasses decide which class to instantiate."
Based on this intent, I don't see how EJBHome qualifies as a FactoryMethod. Or am I missing something?
Originally posted by Nilesh Pereira:
Lasse, could you please explain how the EJBHome satisifes the intent of the GoF FactoryMethod pattern. Thanks, I would appreciate it.
Originally posted by Lasse Koskela:
I'd say that if the EJBHome interface is GOF's Creator, then the ConcreteCreator would be the implementation class generated by the EJB container.
Originally posted by Thambi Rajah:
I can see the classes Creator, ConcreteCreator and Product fit into Factory Method pattern. I wonder what the ConcreteProduct class would be? Would it be the Bean class implemented by the developer or would it be a class generated by the EJB container?