[
https://issues.jboss.org/browse/FORGE-1855?page=com.atlassian.jira.plugin...
]
Matej Briskar edited comment on FORGE-1855 at 5/29/14 6:46 AM:
---------------------------------------------------------------
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()}} ?
was (Author: mbriskar):
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)