[forge-issues] [JBoss JIRA] (FORGE-1855) Simple Container should support singleton services

Matej Briskar (JIRA) issues at jboss.org
Thu May 29 06:41:15 EDT 2014


    [ https://issues.jboss.org/browse/FORGE-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971567#comment-12971567 ] 

Matej Briskar commented on FORGE-1855:
--------------------------------------

However, the singleton instance itself needs to be saved somewhere. What about changing the `interface org.jboss.forge.furnace.addons.Addon` and adding there a method `getSingletonInstances()` ? 

> Simple Container should support singleton services
> --------------------------------------------------
>
>                 Key: FORGE-1855
>                 URL: https://issues.jboss.org/browse/FORGE-1855
>             Project: Forge
>          Issue Type: Feature Request
>          Components: Furnace Simple
>    Affects Versions: 2.6.0.Final
>            Reporter: George Gastaldi
>            Assignee: Matej Briskar
>             Fix For: 2.x Future
>
>
> In CDI we use @Singleton to make a bean a singleton, however there is no equivalent on the simple container.
> I propose a {{public interface SingletonService extends Service}} that could be checked while creating instances in {{SimpleExportedInstanceImpl}}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the forge-issues mailing list