Example usage for org.springframework.util AlternativeJdkIdGenerator AlternativeJdkIdGenerator

List of usage examples for org.springframework.util AlternativeJdkIdGenerator AlternativeJdkIdGenerator

Introduction

In this page you can find the example usage for org.springframework.util AlternativeJdkIdGenerator AlternativeJdkIdGenerator.

Prototype

public AlternativeJdkIdGenerator() 

Source Link

Usage

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;
}