| XAO-Base documentation | Contained in the XAO-Base distribution. |
XAO::DO::Embeddable - recommended base object for XAO embeddable configs
package XAO::DO::Foo::Config; use strict; use XAO::Objects; use base XAO::Objects->load(objname => 'Embeddable');
Provides set_base_config() and base_config() methods to embeddable configs based on it.
Called automatically with one argument -- reference to the configuration object it is being embedded into.
Returns previously stored base config reference. Reason to have this method is the following: methods of embedded configs are called in the namespace of their own and common configuration object is not available from them through normal @ISA relations.
Nothing.
Copyright (c) 2003 XAO, Inc.
Andrew Maltsev <am@xao.com>.
| XAO-Base documentation | Contained in the XAO-Base distribution. |
############################################################################### package XAO::DO::Embeddable; use strict; use XAO::Objects; use base XAO::Objects->load(objname => 'Atom'); use vars qw($VERSION); $VERSION=(0+sprintf('%u.%03u',(q$Id: Embeddable.pm,v 2.1 2005/01/13 22:34:34 am Exp $ =~ /\s(\d+)\.(\d+)\s/))) || die "Bad VERSION"; ###############################################################################
sub set_base_config ($%) { my ($self,$base)=@_; $self->{_embedding_base_config}=$base; } ###############################################################################
sub base_config ($%) { my $self=shift; return $self->{_embedding_base_config}; } ############################################################################### 1; __END__