Sha256: 1f0d35aa89d18e8d01dd2b54e46b0fc8a4dd1d8a071527d416accb5bc1176c5b
Contents?: true
Size: 1.17 KB
Versions: 42
Compression:
Stored size: 1.17 KB
Contents
package Javonet::Core::Handler::CommandHandler::DestructReferenceHandler; use aliased 'Javonet::Core::Handler::PerlHandler' => 'PerlHandler'; use strict; use warnings FATAL => 'all'; use Moose; use Nice::Try; use Data::Dumper; use lib 'lib'; use lib 'data_seed'; use aliased 'Javonet::Core::Exception::Exception' => 'Exception'; extends 'Javonet::Core::Handler::CommandHandler::AbstractCommandHandler'; sub new { my $class = shift; my $self = { required_parameters_count => 1 }; return bless $self, $class; } sub process { my ($self, $command) = @_; try { # my $current_payload_ref = $command->{payload}; # my @cur_payload = @$current_payload_ref; # my $parameters_length = @cur_payload; # if ($parameters_length < $self->{required_parameters_count}){ # die Exception->new("Exception: DestructReferenceHandler parameters mismatch"); # } # my $reference_guid = $command->{payload}[0]; # my $reference_cache = ReferencesCache->new(); # $reference_cache->delete_reference($reference_guid); return 0; } catch ($e){ return Exception->new($e); } } no Moose; 1;
Version data entries
42 entries across 21 versions & 1 rubygems