1 package com.tonbeller.tbutils.res; 2 3 import java.util.MissingResourceException ; 4 import java.util.ResourceBundle ; 5 6 17 public class SimpleInitialProvider extends CompositeResourceProvider implements InitialProvider { 18 public SimpleInitialProvider() { 19 add(new SystemResourceProvider()); 20 21 try { 22 ResourceBundle resb = ResourceBundle.getBundle(USER_PROPERTIES); 23 add(new BundleResourceProvider(USER_PROPERTIES, resb)); 24 } 25 catch (MissingResourceException e) { 26 } 28 29 try { 30 ResourceBundle resb = ResourceBundle.getBundle(RESFACTORY_PROPERTIES); 31 add(new BundleResourceProvider(RESFACTORY_PROPERTIES, resb)); 32 } 33 catch (MissingResourceException e) { 34 } 36 } 37 } | Popular Tags |