1 16 17 package org.springframework.jmx.export.naming; 18 19 import org.springframework.core.io.ClassPathResource; 20 21 24 public class PropertiesFileNamingStrategyTests extends PropertiesNamingStrategyTests { 25 26 protected ObjectNamingStrategy getStrategy() throws Exception { 27 KeyNamingStrategy strat = new KeyNamingStrategy(); 28 strat.setMappingLocation(new ClassPathResource("jmx-names.properties", getClass())); 29 strat.afterPropertiesSet(); 30 return strat; 31 } 32 33 } 34 | Popular Tags |