Custom Scope Example?

View: New views
1 Messages — Rating Filter:   Alert me  

Custom Scope Example?

by Griffith, Michael * :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I've read all the documentation on custom scopes for beans and I still
don't get it.  Currently I have a bean tied to the session scope as
such:

<bean id="questionSequence" class="...service.impl.QuestionSequenceImpl"
scope="session">
  <aop:scoped-proxy/>
  <constructor-arg ref="responseDelegateService"/>
</bean>

This is working as expected; the bean is initialized once when the
session begins. However, this bean is a question sequencer that controls
the flow of page wizard function.  I want to begin a custom scope when
the user selects start wizard, and end it when the wizard is done.  Can
anyone help me with a very simple example for this use case?

Thanks in advance,

MG


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Springframework-user mailing list
Springframework-user@...
https://lists.sourceforge.net/lists/listinfo/springframework-user
LightInTheBox - Buy quality products at wholesale price