I am using a PropertiesFactoryBean to read properties from a properties file using the following configuration:
<bean id="appConfig" class="org.springframework.beans.factory.config.Pr opertiesFactoryBean">
<property name="location">
<value>classpath:config/applicationConfig.properties</value>
</property>
</bean>
Now i want the appConfig properties bean to be available to whatever class that needs to look at these properties, BUT i dont want to wire it into every class that uses it and I dont want to define an explicit property in all the classes that use it. Is there a way to wire this into whatever class that needs it without explicitly wiring this ?
Reply is appreciated


Reply With Quote