[poe-commits] poe/POE/API ResLoader.pm,NONE,1.1
Brought to you by:
rcaputo
From: <su...@us...> - 2003-05-31 20:34:36
|
Update of /cvsroot/poe/poe/POE/API In directory sc8-pr-cvs1:/tmp/cvs-serv1417/POE/API Added Files: ResLoader.pm Log Message: add POE::Resources as a place holder until some Kernel internals get cleaned up ala resource loading. add POE::API::ResLoader which allows POE::Resources a standard initialization method and the ability to add custom resources to the kernel. clarify the select() call in FileHandles.pm to prevent ambiguitity with the select() in Kerne.pl. Fix sessions so they load their resources into the kernel in the original and documented spot --- NEW FILE: ResLoader.pm --- package POE::API::ResLoader; use POE::Kernel; sub import { my $package = (caller())[0]; my $self = shift; if(@_) { my $initializer = shift; if(ref $initializer eq 'CODE') { $initializer->(); } } } 1; |