[jira] [Commented] (DELTASPIKE-399) Incorporate Solder's ResourceLoader features into DeltaSpike
[ https://issues.apache.org/jira/browse/DELTASPIKE-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735908#comment-13735908 ] Aaron Siri commented on DELTASPIKE-399: --- The ConfigSource mechanism looks like it'd meet my needs and I'm going to give it a try but it has a specific purpose. The @Resource/ResourceProvider support in Solder was more generic and I think would still be useful. It easily allows for the loading of .xml files, images, etc. > 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 >Priority: Minor > > 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 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
[jira] [Commented] (DELTASPIKE-399) Incorporate Solder's ResourceLoader features into DeltaSpike
[ https://issues.apache.org/jira/browse/DELTASPIKE-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735888#comment-13735888 ] Aaron Siri commented on DELTASPIKE-399: --- Never mind - found the docs. > 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 >Priority: Minor > > 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 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
[jira] [Commented] (DELTASPIKE-399) Incorporate Solder's ResourceLoader features into DeltaSpike
[ https://issues.apache.org/jira/browse/DELTASPIKE-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735886#comment-13735886 ] Aaron Siri commented on DELTASPIKE-399: --- Is there documentation on this anywhere? I don't see any mention of it. > 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 >Priority: Minor > > 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 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
[jira] [Created] (DELTASPIKE-399) Incorporate Solder's ResourceLoader features into DeltaSpike
Aaron Siri created DELTASPIKE-399: - Summary: 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 Priority: Minor 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 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