On 2004-08-25, Bill Catlan <[EMAIL PROTECTED]> wrote:
>
> Naming the plugin "storage" space with user provided
> tags allows more than one instance of a plugin object.
> Multiple database init plugin objects, or template
> initialization plugin objects with different
> parameterization come to mind.
What these kind of plugins do is add an additional method
to a CGI::Application compatible class.
Handling the "more than one instance" case is no different than
designing any other method that is designed to be called multiple times,
with separate data stores for each. It can be done.
The storage could be like:
$self->{TT}->{instance_1}
$self->{TT}->{instance_2}
It's an implementation detail of the plugin exactly how this is done,
and whether the details are handled internal to the plug-in, or exposed
to the user.
> Assuming only one plugin instance is desired.
See above.
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]