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:
-
$dispatcher
( GX::Dispatcher object )
- Exceptions:
Public Methods
All public methods can be called both as instance and class methods.
setup
Sets up the dispatcher.
$dispatcher->setup;
Internal Methods
dispatch
Handler method.
$dispatcher->dispatch( $context );
- Arguments:
-
$context
( GX::Context object )
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.