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:26:01 GMT


> -----Original Message-----
> From: Matt Sergeant [mailto:matt@sergeant.org]
> Sent: Thursday, August 31, 2000 9:11 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:
> 
> > > That's right... and it's working just great. One thing I'd 
> > > like to add,
> > > and I'll send a patch to you soonish if you think it's 
> worthwhile, is
> > > the ability to specify a whole subtree to be reloaded: using 
> > > ReloadModules
> > > is fine but after a while adding modules to the list gets 
> > > tedious. In most
> > > cases I want to reload my application modules, and no others. 
> > 
> > just to tweek it some more, if it had an option to traverse 
> @ISA for the
> > module, then I could dump the reload code from Apache::Dispatch :)
> > 
> > but seriously, I don't know how many folks are using 
> handler method calls,
> > but, for instance, Apache::AuthCookie requires you to 
> subclass it, so it
> > might be nice to be able to reload AuthCookie on an upgrade 
> when my subclass
> > hasn't changed...
> 
> 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. 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..

> 
> ....
> 
> Apache::Reload->register_module($package, $file); # package is My::Foo

I'll look into it, but it seems as if I'd have to traverse @ISA anyway to
find the parent classes, so it might introduce more overhead to launch a new
module at that point...

anyway, hope everyone is doing well - it's a shame we have to wait for the
random conference to hang out and grab a few beers :)

--Geoff  


> 
> -- 
> <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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
> 

Mime
View raw message