/*
 * This code is generated by blanco Framework.
 */
package blancostruts.runtime;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class ResourceBundleLoader {
    private String _baseName = "";
    private ResourceBundle _bundle = null;
    
    public ResourceBundleLoader(String baseName) {
        _baseName = baseName;
    }
    
    public boolean load() {
        boolean result = false;
        
        try {
            _bundle = ResourceBundle.getBundle(_baseName);
            result = true;
        } catch(MissingResourceException e) {
            result = false;
        }
        
        return result;
    }
    
    public ResourceBundle getResult() {
        return _bundle;
    }

}
