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

Gerhard Petracek commented on DELTASPIKE-399:
---------------------------------------------

@christian:
"storage" as a string is the style of other containers and not cdi (and ds).
if we really need it, we can provide a marker interface and keep the 
information type-safe (like with bv-groups, type-safe view-config,...).
users will only have 1-2 implementations - so it isn't a big issue (+ it should 
be an edge case anyway).
replacing an internal producer should be only the last resort and is (/should 
be) a clear edge case (for users).

the point is:
#1 for our current implementation (we provide out-of-the-box) we don't need an 
additional marker/information at all
#2 if we really need it in the future, we can add it at any time
#3 if users really hit edge cases and they replace the producer (most won't do 
that at all btw.), they can use a custom marker annotation
     (but as mentioned before: we don't need it out-of-the-box)

> Incorporate Solder's ResourceLoader features into DeltaSpike
> ------------------------------------------------------------
>
>                 Key: DELTASPIKE-399
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-399
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Aaron Siri
>            Assignee: John D. Ament
>            Priority: Minor
>             Fix For: 0.6
>
>
> Seam 3's Solder module had some nice resource loading functionality within 
> the org.jboss.solder.resourceLoader packages.  With it you could do the 
> following:
> // Load a properties file
> @Inject @Resource("app.properties")
> private Properties appProperties;
> or:
> @Inject
> private ResourceProvider resourceProvider
> public Properties getHostProperties() {
>    String hostname = java.net.InetAddress.getLocalHost().getHostName();
>    return resourceProvider.loadPropertiesBundle(hostname + ".properties");
> }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to