[
https://issues.apache.org/jira/browse/DELTASPIKE-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13855755#comment-13855755
]
John D. Ament commented on DELTASPIKE-399:
------------------------------------------
My preference at this point is to go the route described:
{noformat}
@ExternalResource(storage="file",name="myapp.properties")
{noformat}
The storage attribute, we can provide a set of constants, to allow devs to
extend it as needed.
It seems like what you're saying
bq. you can just provide a custom producer (+ a custom annotation).
Matched exactly what I did for @XMLProperties
Please also recheck as most of 1-9 are now fixed, where it makes sense (and
some of the things seem like we're trying to limit ourselves).
> 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)