java - What is a good name for class which creates factories? (FooFactoryFactory sounds silly imo) -
I do not remember that it is a similar pattern, but I have a class (factory method pattern) to create Other sections on the basis of Enum Parameters (Abstract Factory Pattern):
Public category FooFactoryFactory {public FooFactory createFactory (FooFactoryType type) {Switch (type) {Case AFoo: New AFooFactory come back has gone); break; Case BFoo: New BFooFactory Return (); break; Default: throw a new runtime up ("..."); }}} Public Interface FooFactory {Foo createFoo (); FooItem createFooItem (); P> P> Perhaps, FooFactoryCreator? (Consider this name during writing this question). IMHO is good, how do you feel?
-
fontcracker
-
FooFactoryProvider
But you can rename your factories, say, look at Builders javax.xml.parsers.DocumentBuilderFactory
, which That processes the DocumentBuilder
examples, which in turn see the document
s
DocumentBuilderFactory
example, another option arises
- An abstract
FooFactory
- a
method (with parameter) -
new
FooFactory
Comments
Post a Comment