Subject: | Desirialize action is called as class method while serialize action is called as object method |
Hello!
I've found strange solution in your code. You call serialize action as
object method ($self->_encoders->{$sclass} ||= $sclass->new;) while
deserialize action you call as class method ($rc = $sclass->execute
( $controller, $c, $sarg );). This is not obviously and unuseful if I
want to have some sort of cache in my own deserializer as attribute for
example.