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

GX::Dispatcher - Dispatcher component

SYNOPSIS

    package MyApp::Dispatcher;
    
    use GX::Dispatcher;
    
    __PACKAGE__->setup;
    
    1;

DESCRIPTION

This module provides the GX::Dispatcher class which extends the GX::Component::Singleton class.

METHODS

Constructor

new

Returns the dispatcher instance.

    $dispatcher = $dispatcher_class->new;
Returns:
Exceptions:

Public Methods

All public methods can be called both as instance and class methods.

setup

Sets up the dispatcher.

    $dispatcher->setup;
Exceptions:

Internal Methods

dispatch

Handler method.

    $dispatcher->dispatch( $context );
Arguments:

This handler is added to the application's DispatchActions hook.

SEE ALSO

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright (c) 2009-2011 Jörg A. Uzarek.

This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.