[forge-issues] [JBoss JIRA] (FURNACE-98) Introduce a Container lookup API
George Gastaldi (JIRA)
issues at jboss.org
Fri Dec 18 10:46:01 EST 2015
[ https://issues.jboss.org/browse/FURNACE-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143012#comment-13143012 ]
George Gastaldi commented on FURNACE-98:
----------------------------------------
One idea would be to add a default method {{Furnace.instance()}} and make the default implementation query a SPI interface (implemented by the existing containers). In case no container is found, the following exception would be thrown:
{code}
"No Furnace container found in the current Addon ["org.example.blah:blah-blah"]. This method must be called within a running Furnace Addon that references a valid Furnace Container. Please see http://forge.jboss.org/document/XYZ for more information.
{code}
We should probably document and number our exceptions.
> Introduce a Container lookup API
> --------------------------------
>
> Key: FURNACE-98
> URL: https://issues.jboss.org/browse/FURNACE-98
> Project: Forge: Furnace
> Issue Type: Feature Request
> Components: Container - CDI, Container - Simple, Runtime
> Affects Versions: 2.22.8.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> It would be nice if Furnace provided a standard way to lookup services, without relying on specific classes for each container.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the forge-issues
mailing list