Announcement Announcement Module
Collapse
No announcement yet.
getting Property file using ReloadableResourceBundleMessageSource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting Property file using ReloadableResourceBundleMessageSource

    Hi,

    Currently i'm using ReloadableResourceBundleMessageSource to implement messageSource interface.

    What i would like to do is not only to getMessage() seperatly each time i need to display it, but to load the entire property file into a Property object.

    I saw that ReloadableResourceBundleMessageSource has a protected API called loadProperties, but it's not accesible..

    Can you please advise on a way to do it via this bean:

    HTML Code:
    	<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<property name="basenames">
    			<list>
    				<value>WEB-INF/classes/mailmessages</value>
    				<value>WEB-INF/classes/messages</value>
    				<value>WEB-INF/classes/exceptionmessages</value>
    			</list>
    		</property>
    		<property name="fileEncodings" value="UTF-8" />
    	    <property name="defaultEncoding" value="UTF-8" />
    	</bean>
    Thanks.
Working...
X