List of usage examples for org.springframework.util AlternativeJdkIdGenerator AlternativeJdkIdGenerator
public AlternativeJdkIdGenerator()
From source file:guru.qas.martini.jmeter.config.DefaultApplicationContextBuilder.java
protected ConfigurableApplicationContext build(String[] locations) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(locations, false); setProfiles(context);/*from w ww . j av a2 s. co m*/ setEnvironment(context); String id = new AlternativeJdkIdGenerator().generateId().toString(); context.setId(id); context.refresh(); return context; }