Mercurial > pub > Impl
diff Lib/IMPL/Object/Factory.pm @ 232:5c82eec23bb6
Fixed degradations due refactoring
author | sergey |
---|---|
date | Tue, 09 Oct 2012 20:12:47 +0400 |
parents | 4d0e1962161c |
children |
line wrap: on
line diff
--- a/Lib/IMPL/Object/Factory.pm Tue Oct 09 03:09:41 2012 +0400 +++ b/Lib/IMPL/Object/Factory.pm Tue Oct 09 20:12:47 2012 +0400 @@ -1,15 +1,19 @@ package IMPL::Object::Factory; use strict; -use parent qw(IMPL::Object IMPL::Object::Serializable); - -use IMPL::lang qw(:declare :constants); +use IMPL::Const qw(:prop); -BEGIN { - public property factory => PROP_GET | PROP_OWNERSET; - public property parameters => PROP_GET | PROP_OWNERSET; - public property method => PROP_GET | PROP_OWNERSET; -} +use IMPL::declare { + base => [ + 'IMPL::Object' => undef, + 'IMPL::Object::Serializable' => undef + ], + props => [ + factory => PROP_RO, + parameters => PROP_RO, + method => PROP_RO + ] +}; # custom factory, overrides default sub new {