The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

KSx::IndexManager::Plugin - base class for IndexManager plugins

SYNOPSIS

  package KSx::IndexManager::Plugin::Mine;
  use base qw(KSx::IndexManager::Plugin);

  sub after_new {
    my ($plugin, $self) = @_;
    # do something with $self
  }

METHODS

new

Create a new plugin. This is called for you automatically and you should not need to use it.

before_new

after_new

Called when creating a new Manager. before_new is passed the hashref argument to new, and after_new is passed the newly created Manager.

alter_path

Called with the Manager object and a reference to the path as a string.

before_add_doc

after_add_doc

Called when adding a document to the invindex. Both methods are passed the Manager and the object being added.