Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listeners

 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFSJ 1st edition 206 page it has been give .

Lifecycle events related to sessions(excluding attributes related events) ->sessionCreated()m sessionDestroyed()

Lifecycle events related to requests (excluding attributes related events)->requestInitialized(),requestDestroyed().

Lifecycle events related to contexts(excluding attributes related events)-> contextInitialized(),contextDestroyed().

But as per my understanding -> the bolded events should be methods

please share your views...
[ July 28, 2008: Message edited by: Chintu sirivennela ]
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In book these are specified as "Lifecycle events" as these are methods that are called when some events generate.So its up to you either you call it lifecycle events or methods.I do not think there is any difference in what you named them.
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response.

But we already have events rite, but how can we call methods as Lifecycle events . I have shown some other way is it correct or not

Lifecycle events related to sessions(excluding attributes related events) ->HttpSessionEvent

Lifecycle events related to requests (excluding attributes related events)->ServletRequestEvent

Lifecycle events related to contexts(excluding attributes related events)-> ServletContextEvent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic