Announcement Announcement Module
Collapse
No announcement yet.
Introspect information about scopes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Introspect information about scopes

    Spring 2.0M5 introduced support for scoped beans on the core container. It allows to maintain scoped bean instances and even use custom scopes (e.g. domain specific conversations).

    However it is not possible to query what scopes already registered on the bean factory and it is also not possible to query what conversation is active at the moment (it is hidden in concrete Scope implementation).

    I wonder if it is possible to introduce additional API for this stuff? For example:

    Set<String> BeanFactory.getScopeNames() to retun registered scope names

    String Scope.getConversationId() to return id for the currently active conversation or null if such id can't be created (e.g. for http request scope). For example it could return session id for http session scope.

    Think would be usefull for debugging ans also for implementing functionality around scopes using AOP. Eg. notification on scope activity, etc.

    I opened Jira for this enhancement. http://opensource.atlassian.com/proj...rowse/SPR-2065
Working...
X