view Lib/IMPL/DOM/Schema/InflateFactory.pm @ 241:f48a1a9f4fa2

+Added ViewResult to allow implementation of the view environment. *TTDocuments now storing creation parameters *TTControls automatically propagating layout and title meta to their attributes +Added UnauthorizaedException web exception *minor fixes
author sergey
date Thu, 18 Oct 2012 04:49:55 +0400
parents 4d0e1962161c
children 814d755e5d12
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;