public ResourceBundle getBundle ( ) throws MissingResourceException { if ( null == m_bundle ) { // bundle wasn't cached, so load it, cache it, and return it. ClassLoader classLoader = m_classLoader ; if ( null == classLoader ) { classLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; } if ( null != classLoader ) { m_bundle = ResourceBundle . getBundle ( m_baseName , m_locale , classLoader ) ; } else { m_bundle = ResourceBundle . getBundle ( m_baseName , m_locale ) ; } } return m_bundle ; }
Retrieve underlying ResourceBundle . If bundle has not been loaded it will be loaded by this method . Access is given in case other resources need to be extracted that this Manager does not provide simplified access to .