Mercurial > pub > Impl
view Lib/IMPL/DOM/Schema/InflateFactory.pm @ 273:ad93c9f4dd93
+Added support for destructors, (special method named DTOR)
| author | sergey | 
|---|---|
| date | Tue, 29 Jan 2013 17:19:10 +0400 | 
| parents | 814d755e5d12 | 
| children | 
line wrap: on
 line source
package IMPL::DOM::Schema::InflateFactory; use strict; require IMPL::Exception; require IMPL::Object::Factory; sub new { my ($self,$value,$schema) = @_; if ($value =~ /^(\w+(?:::\w+)*)(?:\.(\w+))?$/) { return IMPL::Object::Factory->new($1,undef,$2); } else { die new IMPL::InvalidArgumentException("Expected value in the format PACKAGE::NAME.method_name",$value); } } 1;
