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 |
# |
# |
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; |
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 |
|
|
276 |
} |
} |
277 |
|
|
278 |
1; |
1; |
279 |
|
__END__ |