When/how is Plugin->register called?

Brett Hoerner bretthoerner at gmail.com
Wed Oct 24 19:07:24 UTC 2007


On 10/24/07, Matthew Pitts <mpitts at a3its.com> wrote:
> Can anyone shine some light on this for me? I'm trying to write a Plugin
> and can't figure out when and how my plugin's register method is called.

Doing a "LOAD MyPlugin" will call the load method, and after that,
using "SET plugins                                = myplugin" is
allowed inside of a Service, and that runs the register method.

LOAD MyPlugin # calls load
CREATE SERVICE test
  SET role = reverse_proxy
  SET pool = test_pool
  SET plugins = myplugin # calls register for this plugin on this service
ENABLE test

Brett


More information about the perlbal mailing list