1
2
3
4
5
6
7
8
9
10
11 package org.mule.config.i18n;
12
13 import java.util.Locale;
14 import java.util.ResourceBundle;
15
16 public class ReloadControl
17 {
18
19
20 static class Always extends ResourceBundle.Control
21 {
22 boolean needsReload = true;
23
24 @Override
25 public boolean needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)
26 {
27
28 return true;
29 }
30
31 @Override
32 public long getTimeToLive(String baseName, Locale locale)
33 {
34 if (needsReload)
35 {
36
37 return 0;
38 }
39
40 return ResourceBundle.Control.TTL_NO_EXPIRATION_CONTROL;
41 }
42 }
43 }