The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Package::Watchdog::Tracker - Base class for objects that track overriden subs.

DESCRIPTION

Base class for objects that track overriden subs.

ACCESSORS

The following accessors methods are automatically generated using Package::Watchdog::Util::build_accessors().

tracked()

List of the Package::Watchdog::Sub objects that are being tracked.

METHODS

track()

MUST be overriden by a subclass. Called by new to start tracking.

init( $self, @params )

Should be overriden by a subclass. Called by new after object construction.

new( @params )

All params are passed into init(). Creates a new instance of the tracker, also runs track() to begin tracking subs..

untrack()

Removes the tracker from all the subs being tracked. This will restore all tracked subs that are not also tracked by another tracker. Also removes all references to tracked subs.

Automatically called when the object falls out of scope or is otherwise destroyed.

AUTHORS

Chad Granum chad@opensourcery.com

COPYRIGHT

Copyright (C) 2009 OpenSourcery, LLC

Package-Watchdog is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Package-Watchdog is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Package-Watchdog is packaged with a copy of the GNU General Public License. Please see docs/COPYING in this distribution.