You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Shaishav Parekh (JIRA)" <ji...@apache.org> on 2015/07/27 17:16:05 UTC

[jira] [Commented] (CAMEL-9025) Programatically view properties loaded via properties file

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

Shaishav Parekh commented on CAMEL-9025:
----------------------------------------

I can load the properties file into a properties variable via
{code:java}
props.load(context.getApplicationContextClassLoader().getResourceAsStream("myprops.properties"));
{code}

But it would be nice if I can access the properties via
{code:java}
context.getProperties()
{code}
function.

> Programatically view properties loaded via properties file
> ----------------------------------------------------------
>
>                 Key: CAMEL-9025
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9025
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.15.2
>         Environment: Any
>            Reporter: Shaishav Parekh
>            Priority: Minor
>              Labels: PropertiesComponent
>
> Currently there is no way to view properties loaded via a file on the classpath if one is using the PropertiesComponent. It would be useful if one can programatically access the properties loaded via the classpath for reporting reasons.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)