[
https://issues.apache.org/jira/browse/DELTASPIKE-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13855712#comment-13855712
]
Gerhard Petracek commented on DELTASPIKE-399:
---------------------------------------------
john: @XMLProperties:
that's not correct since you have the handling in the producer -> if we need
something in addition you have to add a new annotation + the handling in
ExternalResourceProducer#getProperties. with an enum you have to do the same
(just instead the new annotation a new enum-value), but you have only one
annotation users have to remember (you don't have to remember the enum, because
it's given...).
in any case: if you need something highly special and you would create a
special annotation for it (for whatever reason), you can still do it - but we
don't need it for the functionality we provide out-of-the-box.
btw. it even fails with
mvn clean install -Ptomee-build-managed
and
mvn clean install -Pjbossas-build-managed-7
with a NullPointerException
we are close to a new release and this ticket is highly blocking. -> let's fix
#1-#9 as well as the build or postpone it (= revert it for now).
> 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)