[
https://issues.apache.org/jira/browse/CAMEL-13425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16820062#comment-16820062
]
Claus Ibsen commented on CAMEL-13425:
-------------------------------------
Mind that even if you invalidate a cache then many of the property placeholders
are only looked up once on startup etc. So if your use-case is that if you
modify a application.properties file (for instance) and then invalidate cache,
then all of its property keys/placeholders are automatic magically updated in
Camel. Then that wont work, and its not designed to do so.
> Add possibility to invalidate cache for PropertiesComponent
> -----------------------------------------------------------
>
> Key: CAMEL-13425
> URL: https://issues.apache.org/jira/browse/CAMEL-13425
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.23.1
> Reporter: Kamil
> Priority: Major
>
> Currently I can only enable/disable cache for PropertiesComponent.
> I'd like to be able to enable caching, but programmatically invalidate cache
> on demand.
> This should be rather simeple to implemet, something like:
> {code:java}
> public void invalidateCache() {
> this.cacheMap.clear();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)