JSORB::Dispatcher::Traits::WithInvocantFactory - A dispatch trait which creates invocants


JSORB documentation Contained in the JSORB distribution.

Index


Code Index:

NAME

Top

JSORB::Dispatcher::Traits::WithInvocantFactory - A dispatch trait which creates invocants

DESCRIPTION

Top

This is very similar to JSORB::Dispatcher::Traits::WithInvocant except that it will create a new invocant for each procedure call.

BUGS

Top

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Top

Stevan Little <stevan.little@iinteractive.com>

COPYRIGHT AND LICENSE

Top


JSORB documentation Contained in the JSORB distribution.

package JSORB::Dispatcher::Traits::WithInvocantFactory;
use Moose::Role;

our $VERSION   = '0.04';
our $AUTHORITY = 'cpan:STEVAN';

with 'JSORB::Dispatcher::Traits::WithInvocant';

sub call_procedure {
    my ($self, $procedure, $call, @args) = @_;
    
    my $class_name = $procedure->class_name;
    my $invocant   = $class_name->new( @args );
    
    $procedure->call( $self->assemble_params_list( $call, $invocant ) );
}

no Moose::Role; 1;

__END__