Rolf Schaufelberger <r...@plusw.de> writes:

> I'm just trying to get my feet wet with Moose.
>
> The code I woud like to migrate to Moose uses the factory pattern in
> several classes. So, is there a Moose-way to implement a factory
> class?

I confess that your question puzzles me: the "factory pattern" is just
that, an implementation independent approach to a particular problem.

I can't imagine what sort of Moose specific method of implementation you
were thinking of, really, which is probably a failure of imagination on
my part.

The general technique would be, I suggest, to replace your traditional
Perl OO classes with Moose OO classes, then make the minor changes to
the factory to adapt to any different naming or initialization
conventions...


Have I missed something obvious that explains better what question you
were asking?  I feel that I must have done...

Regards,
        Daniel

Reply via email to