Changes between Version 4 and Version 5 of XasLibPoeSession


Ignore:
Timestamp:
08/19/15 10:17:20 (2 years ago)
Author:
kevin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XasLibPoeSession

    v4 v5  
    1515the necessary actions for the lifetime of the session. This includes signal 
    1616handling. Due to the nature of POE events, they can not be inherited from, 
    17 but the event handlers can call methods which can. To effectively inherit from 
    18 this, you class need to walk the SUPER chain to process overridden methods. 
     17but the event handlers can call methods which can. To effectively inherit 
     18from this class, you need to walk the SUPER chain to process overridden 
     19methods. 
    1920 
    2021= METHODS = 
     
    2223== new == 
    2324 
    24 This method initializes the modules. It inherits from [wiki:XasBase XAS::Base] and takes these parameters: 
     25This method initializes the modules. It inherits from [wiki:XasBase 
     26XAS::Base] and takes these parameters: 
    2527 
    2628'''-alias''' 
     
    3133 
    3234This method is called after session startup and is used for initialization. 
    33 This initialization may include defining additional event. By default it 
     35This initialization may include defining additonal event. By default it 
    3436sets up signal handling for these signals: 
    3537 
     
    5456HUP signal. 
    5557 
    56 == session_interrupt == 
     58== session_interrupt($signal) == 
    5759 
    5860This is called when the process receives a signal. By default, when a HUP 
    5961signal is received it will call session_reload() otherwise it calls 
    6062session_shutdown(). 
     63 
     64'''$signal''' 
     65 
     66    The signal that was trapped. 
     67 
     68== session_exception($ex) == 
     69 
     70This is called when a exception or "die" happens. By default, this just 
     71prints out the messages and continues on. This provides a default exception 
     72handler for a session. 
     73 
     74'''$ex''' 
     75 
     76    The exception hash that is generated by POE. The field 'error_str' is 
     77    used 
     78    to print out the exception message. 
    6179 
    6280== session_stop == 
     
    8199Copyright (C) 2014 Kevin L. Esteb 
    82100 
    83 This is free software; you can redistribute it and/or modify it under 
    84 the terms of the Artistic License 2.0. For details, see the full text 
    85 of the license at http://www.perlfoundation.org/artistic_license_2_0. 
     101This is free software; you can redistribute it and/or modify it under the 
     102terms of the Artistic License 2.0. For details, see the full text of the 
     103license at http://www.perlfoundation.org/artistic_license_2_0. =cut 
    86104 
    87