Skip to content

Commit

Permalink
Update IndirectEndpoint.java
Browse files Browse the repository at this point in the history
  • Loading branch information
thisaltennakoon committed Aug 21, 2023
1 parent 72f0288 commit 68bc379
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ private synchronized void reLoadAndInitEndpoint(ConfigurationContext cc) {

boolean reLoad = (realEndpoint == null);
if (!reLoad) {

Entry entry = synCfg.getEntryDefinition(key);
if (entry != null && entry.isDynamic()) {

if (!entry.isCached() || entry.isExpired()) {
reLoad = true;
}
Expand All @@ -174,6 +176,7 @@ private synchronized void reLoadAndInitEndpoint(ConfigurationContext cc) {
}

if (reLoad) {

if (log.isDebugEnabled()) {
log.debug("Loading real endpoint with key : " + key);
}
Expand Down

0 comments on commit 68bc379

Please sign in to comment.