| POEx-Role-SessionInstantiation documentation | Contained in the POEx-Role-SessionInstantiation distribution. |
POEx::Role::SessionInstantiation::Meta::POEState - A read-only object that provides POE context
version 1.102610
is: ro, isa: Kernel|Session|DoesSessionInstantiation
The sender of the current event can be access from here. Semantically the same as $_[+SENDER].
is: ro, isa => Str
The state fired. This should match the current method name (unless of course within the _default event handler, then it will be the event name that was invoked but did not exist in your object instance.
is: ro, isa: Kernel
This is actually the POE::Kernel singleton provided as a little sugar instead of requiring use of $poe_kernel, etc. To make sure you are currently within a POE context, check this attribute for definedness.
is: rw, isa: Maybe[Str]
These attributes provide tracing information from within POE. From is actually not used in POE::Session as far as I can tell, but it is available just in case.
Clones the current POEState object and returns it
Nicholas Perez <nperez@cpan.org>
This software is copyright (c) 2010 by Nicholas Perez.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| POEx-Role-SessionInstantiation documentation | Contained in the POEx-Role-SessionInstantiation distribution. |
package POEx::Role::SessionInstantiation::Meta::POEState; BEGIN { $POEx::Role::SessionInstantiation::Meta::POEState::VERSION = '1.102610'; } use MooseX::Declare; #ABSTRACT: A read-only object that provides POE context class POEx::Role::SessionInstantiation::Meta::POEState { use POEx::Types(':all'); use MooseX::Types::Moose('Maybe', 'Str'); has sender => ( is => 'ro', isa => Kernel|Session|DoesSessionInstantiation); has state => ( is => 'ro', isa => Str ); has kernel => ( is => 'ro', isa => Kernel ); has file => ( is => 'ro', isa => Maybe[Str] ); has line => ( is => 'ro', isa => Maybe[Str] ); has from => ( is => 'ro', isa => Maybe[Str] ); method clone { return $self->meta->clone_object($self); } } 1;
__END__