perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <gyo...@laserlink.net>
Subject RE: Apache::Reload
Date Thu, 31 Aug 2000 13:40:59 GMT


> -----Original Message-----
> From: Matt Sergeant [mailto:matt@sergeant.org]
> Sent: Thursday, August 31, 2000 9:36 AM
> To: Geoffrey Young
> Cc: 'Eric Cholet'; Stas Bekman; dev@perl.apache.org
> Subject: RE: Apache::Reload
> 
> 
> On Thu, 31 Aug 2000, Geoffrey Young wrote:
> 
> > > I'm not fully sure I understand the difference between 
> this and whats
> > > there already. However yes, you can drop this from 
> Apache::Dispatch by
> > > simply calling register_module() yourself:
> > 
> > well, I haven't actually tried it yet :)
> > 
> > but my understanding is that, other than it stat'ing 
> everything, you can
> > specify modules, but that requires adding 
> >  
> > > use Apache::Reload;
> > 
> > to the code.
> 
> Nope. Doesn't require that in 0.04+
> 
> > Apache::AuthCookie is a cpan module, so I thought it would be
> > nice to be able to use Reload in my subclass and have it 
> stat and reload
> > AuthCookie without having to touch the shrink wrapped stuff.
> > 
> > make sense?  it's still early over here...
> > 
> > I guess you could always PerlSetVar ReloadModules 
> "Apache::AuthCookie"
> > though, but for multiple inheritance, it gets kinda tiresome..
> 
> Now I see where you're coming from... Interesting concept. 
> Would it be an
> extra option to traverse @ISA?

yeah, a PerlSetVar or something to toggle it on or off - just an idea,
though.  I don't want to bloat a module if nobody is really using OO
handlers...

Dispatch does this, as an option, so that if Foo->bar() is called, it
doesn't matter where bar() actually lives - @INC of Foo is traversed and
each parent is reloaded to make sure that bar() is up to date...

> 
> My suggestion would still be manual, of course. But doesn't 
> require you to
> modify the original module. This works though:
> 
> use Apache::Reload;
> map { Apache::Reload->register_module($_, $INC{$_}) } @ISA;

cool, I'll check it out...

> 
> -- 
> <Matt/>
> 
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org | AxKit: http://axkit.org
> 

Mime
View raw message