[ 
https://issues.apache.org/jira/browse/ONAMI-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591829#comment-13591829
 ] 

Jordan Zimmerman commented on ONAMI-95:
---------------------------------------

>0. What is the usecase for this? I'm just very curious =)

There are a number of uses. A typical example is monitoring/debugging objects 
that need a kind of "global" scope. Another are apps that create multiple 
injectors (which can be common) but need an object to be singleton regardless 
of injector.
                
> Add a "true" singleton scope
> ----------------------------
>
>                 Key: ONAMI-95
>                 URL: https://issues.apache.org/jira/browse/ONAMI-95
>             Project: Apache Onami
>          Issue Type: New Feature
>          Components: scopes
>    Affects Versions: scopes-1.0.0
>            Reporter: Jordan Zimmerman
>            Assignee: Jordan Zimmerman
>            Priority: Minor
>             Fix For: scopes-1.0.0
>
>         Attachments: ONAMI-95.patch
>
>
> In Guice, Singeltons are unique per injector. In the JVM, manual singletons 
> are unique per ClassLoader. Add a scope that creates a true Singleton that is 
> unique per JVM regardless of injector or ClassLoader.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to