--- nfo/perl/libs/Data/Storage.pm 2003/01/20 16:52:13 1.16 +++ nfo/perl/libs/Data/Storage.pm 2003/01/30 21:42:22 1.17 @@ -1,6 +1,6 @@ ## ------------------------------------------------------------------------ ## -## $Id: Storage.pm,v 1.16 2003/01/20 16:52:13 joko Exp $ +## $Id: Storage.pm,v 1.17 2003/01/30 21:42:22 joko Exp $ ## ## Copyright (c) 2002 Andreas Motl ## @@ -9,6 +9,9 @@ ## ------------------------------------------------------------------------ ## ## $Log: Storage.pm,v $ +## Revision 1.17 2003/01/30 21:42:22 joko +## + minor update: renamed method +## ## Revision 1.16 2003/01/20 16:52:13 joko ## + now using 'DesignPattern::Object' to create a new 'Data::Storage::Handler::Xyz' on demand - before we did this in a hand-rolled fashion ## @@ -154,7 +157,8 @@ # filtering AUTOLOAD calls and first-time-touch of the actual storage impl if ($self->_filter_AUTOLOAD($method)) { - $self->_accessStorage(); + #print "=== FILTER!", "\n"; + $self->_accessStorageHandle(); if ($self->{STORAGEHANDLE}) { return $self->{STORAGEHANDLE}->$method(@_); } else { @@ -186,11 +190,12 @@ return @result; } -sub _accessStorage { +sub _accessStorageHandle { my $self = shift; # TODO: to some tracelevel! + #print "=========== _accessStorage", "\n"; if ($TRACELEVEL) { - $logger->debug( __PACKAGE__ . "[$self->{locator}->{type}]" . "->_accessStorage()" ); + $logger->debug( __PACKAGE__ . "[$self->{locator}->{type}]" . "->_accessStorageHandle()" ); } if (!$self->{STORAGEHANDLE}) { return $self->_createStorageHandle();