view Lib/IMPL/Object/Accessor.pm @ 263:0f59b2de72af

*fixed IMPL::DOM::Schema circular module references *modified IMPL::Object::Singleton, added auto-activation *code cleanups, docs
author sergey
date Wed, 09 Jan 2013 05:17:44 +0400
parents 6d8092d8ce1b
children 4ddb27ff4a0b
line wrap: on
line source

package IMPL::Object::Accessor;
use strict;
use parent qw(IMPL::Object::Abstract Class::Accessor IMPL::Class::Meta);

require IMPL::Class::Property::Accessor;

sub new {
    my $class = shift;
    my $self = $class->Class::Accessor::new( @_ == 1 && ref $_[0] && UNIVERSAL::isa($_[0],'HASH') ? $_[0] : ());
    $self->callCTOR(@_);
    return $self;
}

sub surrogate {
    $_[0]->Class::Accessor::new;
}

__PACKAGE__->static_accessor( propertyInfoClass => 'IMPL::Class::AccessorPropertyInfo' );

sub _PropertyImplementor {
    'IMPL::Class::Property::Accessor'
}

1;