view Lib/IMPL/DOM/Schema/InflateFactory.pm @ 144:b56ebc31bf18

Empty nodes no more created while transforming a post request to the DOM document minor speed improvements to the object CTOR caching Added support for a secure processing (and 'laundering' ) a CGI parameters Many minor fixes
author wizard
date Tue, 13 Jul 2010 02:05:38 +0400
parents 196bf443b5e1
children d1676be8afcc
line wrap: on
line source

package IMPL::DOM::Schema::InflateFactory;
use strict;

require IMPL::Exception;
require IMPL::Object::Factory;

sub new {
	my ($self,$value) = @_;
	
	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;