Re: PoCo Generic packages question

Josh803316 <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
*Hopefully this doesn't create a new thread.

I figured out the problem with having access to the Packages. I need to have
factories methods defined so that when the return came with the blessed
object, I had access to the object in ARG1 of the return.

$heap->{$alias} = POE::Component::Generic->spawn(
                    package => 'LongRunning::Test',
                    alias   => $alias,
                    methods   => [ qw( new create_message send)],
                    factories => [ qw(send create_message) ],  #NEEDED THIS
                    packages => {
                        'Other::Module' => {
                            methods => [ qw( orchestrate ) ],
                        }
                    },

     );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.