You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "onder sezgin (JIRA)" <ji...@apache.org> on 2017/05/23 18:54:04 UTC

[jira] [Commented] (CAMEL-11274) ReloadStrategySupport is not easy extendable because of a number of private's

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

onder sezgin commented on CAMEL-11274:
--------------------------------------

i am not sure if this is needed. if you require a custom  reloadstrategy, i guess you can write your implementation by implementing ReloadStrategy interface and extending ServiceSupport. 

> ReloadStrategySupport is not easy extendable because of a number of private's
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-11274
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11274
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.19.0
>            Reporter: Ronny Aerts
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> I was trying to analyse ticket CAMEL-11273 and therefore I created a new RouteWatcherReloadStrategy class which overrides the onReloadXml from ReloadStrategySupport. 
> Your have to forsee the succeeded and failed private variables in order to be able to override the onReloadXml with nearly the same functionality. It would be better to have those variables published are to have setters. 
> It would be nice too to have a published version of ResourceState (since it is used in onReloadXml ).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)