/[cvs]/nfo/perl/libs/Data/Storage/Container.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Storage/Container.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by joko, Thu Mar 27 15:31:08 2003 UTC revision 1.10 by joko, Fri Jun 6 03:26:24 2003 UTC
# Line 3  Line 3 
3  #  $Id$  #  $Id$
4  #  #
5  #  $Log$  #  $Log$
6    #  Revision 1.10  2003/06/06 03:26:24  joko
7    #  + sub existsStorage
8    #
9  #  Revision 1.9  2003/03/27 15:31:08  joko  #  Revision 1.9  2003/03/27 15:31:08  joko
10  #  fixes to modules regarding new namespace(s) below Data::Mungle::*  #  fixes to modules regarding new namespace(s) below Data::Mungle::*
11  #  #
# Line 104  sub addStorage { Line 107  sub addStorage {
107    $self->{storage}->{$name} = $storage;    $self->{storage}->{$name} = $storage;
108  }  }
109    
110    sub existsStorage {
111      my $self = shift;
112      my $name = shift;
113      return exists $self->{storage}->{$name};
114    }
115    
116  sub initLocator {  sub initLocator {
117    my $self = shift;    my $self = shift;
118    my $name = shift;    my $name = shift;
# Line 172  sub initStorage { Line 181  sub initStorage {
181    my $self = shift;    my $self = shift;
182    my $name = shift;    my $name = shift;
183    
184      return if $self->existsStorage($name);
185    
186    my $locator = $self->getLocator($name);    my $locator = $self->getLocator($name);
187    $logger->info( __PACKAGE__ . " is initializing storage declared by locator \"$name\"" );    $logger->info( __PACKAGE__ . " is initializing storage declared by locator \"$name\"" );
188    
# Line 265  sub _dbErrorHandler { Line 276  sub _dbErrorHandler {
276  }  }
277    
278  1;  1;
279    __END__

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed