Announcement Announcement Module
No announcement yet.
Destroying a custom scope Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Destroying a custom scope

    Hi all,

    A colleague of mine has implemented 'MyFaces Trinidad Page flow scope' as a custom scope however I am having a problem 'tidying up' when the scope is destroyed. I have implemented the DisposableBean interface on my class defined with the custom scope however the destroy method is never called. If I add DisposableBean to my custom PageFlowScope class the destroy method is called however i dont know how to reference my underlying class using this scope?

    I have searched the forums and the web and can see several custom scope examples but non which give me an idea how todo this. I can see that the Scope interface has the registerDestructionCallback() method however I am unsure how to implement this?

    Can anyone point me in the right direction as how todo this?

    Many thanks,

    Last edited by Andyr; Oct 11th, 2007, 06:18 AM.

  • #2
    There was a discussion about this a while ago.