Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.183.615 Times

Class::Data::Reloadable 0.04

Company: David Baird
Date Added: September 08, 2013  |  Visits: 373

Class::Data::Reloadable

Report Broken Link
Printer Friendly Version


Product Homepage
Download (37 downloads)



A drop-in replacement for Class::Data::Inheritable, but subclasses can be reloaded without losing their class data. This is useful in mod_perl development, and may be useful elsewhere.<br /><br />In mod_perl, Apache::Reload conveniently reloads modules that have been modified, rather than having to restart Apache. This works well unless the module stores class data that are not re-created during the reload. In this situation, you still need to restart the server, in order to rebuild the class data.<br /><br />Saves many (if your code starts out buggy like mine) Apache restarts.<br /><br />But only if you're strict about storing all class data using this mechanism.<br /><br />Drop-in<br /><br />If you want to switch over to this module in a large app, instead of changing all references to Class::Data::Inheritable, you can instead create an empty subclass Class::Data::Inheritable and put it somewhere in your Perl search path that gets searched before the path with the real Class::Data::Inheritable, e.g.<br /><br /> use lib '/my/lib';<br /><br />and /my/lib/Class/Data/Inheritable.pm is:<br /><br /> package Class::Data::Inheritable;<br /> use base 'Class::Data::Reloadable';<br /> 1;<br /><br />METHODS ^<br /><br />mk_classdata<br /><br /> Creates a classdata slot, optionally setting a value into it.<br /><br /> $client->mk_classdata( 'foo' );<br /> $client->classdata->foo( 'bar' );<br /> # same thing:<br /> $client->mk_classdata( foo => 'bar' );<br /><br /> Note that during a reload, this method may be called again for an existing attribute. If so, any value passed with the method is silently ignored, in favour of whatever value was in the slot before the reload.<br /><br /> This also provides a _foo_accessor alias.<br />AUTOLOAD<br /><br /> If the class has been reloaded, and if before the reload, other classes have called mk_classdata on this class, then some accessors will be missing after the reload. AUTOLOAD replaces these methods the first time they are called.<br /><br /> Redispatches (via NEXT) to any AUTOLOAD method further up the chain if no attribute is found.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Apache Attribute Autoload Bar Called Class Classdata Classdatainheritable Clientgtmk Classdata Method Mod Perl Module Reload Reloaded Restart
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


CLASS::DATA::RELOADABLE RELATED
Libraries  -  XML::ApacheFOP 0.03
XML::ApacheFOP is a Perl module that can access Apache FOP from Perl to create PDF files using XSL-FO. SYNOPSIS use XML::ApacheFOP; my $Fop = XML::ApacheFOP->new(); # create a PDF using a xml/xsl tranformation $Fop->fop(xml=>"foo.xml",...
7.17 KB  
Libraries  -  Apache::Wyrd 0.94
Apache::Wyrd is a Perl module for HTML embeddable perl objects under mod_perl. Apache::Wyrd is the core module in a collection of interoperating modules that allow the rapid object-oriented development of web sites in Apaches mod_perl...
174.08 KB  
Libraries  -  Class::DataStore 0.07
Class::DataStore is a Perl module for generic OO data storage/retrieval. SYNOPSIS my %values = ( one => 1, two => 2 ); my $store = Class::DataStore->new( %values ); # using get/set methods $store->set( three, 3 ); my $three = $store->get(...
4.1 KB  
Libraries  -  Class::XML 0.06
Class::XML is a Perl module for simple XML Abstraction. SYNOPSIS package Foo; use base qw/Class::XML/; __PACKAGE__->has_attributes(qw/length colour/); __PACKAGE__->has_child(bar => Bar); package Bar; use base qw/Class::XML/;...
18.43 KB  
Libraries  -  Class::Declare 0.08
Class::Declare is a Perl module created to declare classes with public, private and protected attributes and methods. SYNOPSIS package My::Class; use strict; use warnings; use base qw( Class::Declare ); __PACKAGE__->declare( public =>...
76.8 KB  
Libraries  -  Class::MakeMethods::Template::Generic 1.01
Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types. SYNOPSIS package MyObject; use Class::MakeMethods ( Template::Hash:new => [ new ], Template::Hash:scalar => [ foo ] Template::Static:scalar...
153.6 KB  
Libraries  -  Class::Maker 0.05.18
Class::Maker Perl module contains classes, reflection, schema, serialization, attribute- and multiple inheritance. SYNOPSIS use Class::Maker qw(class); class Human, { isa => [qw( ParentClass )], public => { string => [qw(name lastname)],...
49.15 KB  
Libraries  -  Class::Tangram 1.57
Class::Tangram is a Perl module for tangram-friendly classes, DWIM attributes. SYNOPSIS package MyObject; use base qw(Class::Tangram); our $fields = { int => [ qw(foo bar) ], string => [ qw(baz quux) ] }; package main; my $object =...
50.18 KB  
Libraries  -  Object::Trampoline 1.25
Object::Trampoline is a Perl module for delay object construction, and optionally using the class module, until a method is actually dispatched, simplifies runtime definition of handler classes. SYNOPSIS # adding "use_class" will perform an...
9.22 KB  
Libraries  -  Class::DBI::Plugin::FilterOnClick 1.0
Class::DBI::Plugin::FilterOnClick is a Perl module to generate browsable and searchable HTML Tables using FilterOnClick in conjunction with Class::DBI. SYNOPSIS # Inside of your sub-class of Class::DBI add these lines: use...
24.58 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB