GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CLASS::MIXINFACTORY::NEXT (3)

.ds Aq ’

NAME

Class::MixinFactory::NEXT - Superclass method redispatch for mixins

CONTENTS

SYNOPSIS



  use Class::MixinFactory::NEXT;

  package My::BaseClass; 
  sub foo { return "Foo Bar" }

  package My::Logging;
  sub foo { warn "Calling foo"; (shift)->NEXT(foo, @_) }

  package My::MixedClass;
  @ISA = ( My::Logging, My::BaseClass, Class::MixinFactory::NEXT; );

  package main;
  print My::MixedClass->foo();



DESCRIPTION

Enhanced superclass method dispatch for use inside mixin class methods. Allows mixin classes to redispatch to other classes in the inheritance tree without themselves inheriting from anything.

    Public Methods

This package defines one method, named NEXT.



  $callee->NEXT( $method, @args );



Searches the inheritance tree of the callee until it finds the package from which NEXT is being called, and then continues searching until the next class which can perform the named method.

Unlike SUPER, this method will backtrack down the inheritance tree to find implementations later in the search path even if they are on a separate branch.

SEE ALSO

This class is automatically included by Class::MixinFactory.

This is similar to the functionality provided by NEXT::ACTUAL, but without using AUTOLOAD; for a more generalized approach to this issue see NEXT.

For distribution, installation, support, copyright and license information, see Class::MixinFactory::ReadMe.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MIXINFACTORY::NEXT (3) 2004-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.