Example usage for org.apache.commons.lang.math RandomUtils JVM_RANDOM

List of usage examples for org.apache.commons.lang.math RandomUtils JVM_RANDOM

Introduction

In this page you can find the example usage for org.apache.commons.lang.math RandomUtils JVM_RANDOM.

Prototype

Random JVM_RANDOM

To view the source code for org.apache.commons.lang.math RandomUtils JVM_RANDOM.

Click Source Link

Document

An instance of JVMRandom .

Usage

From source file:org.isisaddons.module.fakedata.dom.FakeDataService.java

@Programmatic
@PostConstruct//from  w  ww.ja v a 2  s. c  o m
public void init() {

    random = RandomUtils.JVM_RANDOM;
    javaFaker = new Faker(random);

    randomService = new RandomService(random);
    fakeValuesService = new FakeValuesService(Locale.ENGLISH, randomService);

    // (slightly refactored) wrappers for the javafaker subclasses
    this.names = new Names(this);
    this.comms = new Comms(this);
    this.lorem = new Lorem(this);
    this.addresses = new Addresses(this);
    this.creditCards = new CreditCards(this, fakeValuesService);
    this.books = new Books(this);

    this.strings = new Strings(this);
    this.bytes = new Bytes(this);
    this.shorts = new Shorts(this);
    this.integers = new Integers(this);
    this.longs = new Longs(this);
    this.floats = new Floats(this);
    this.doubles = new Doubles(this);
    this.chars = new Chars(this);
    this.booleans = new Booleans(this);

    this.collections = new Collections(this);
    this.enums = new Enums(this);

    this.javaUtilDates = new JavaUtilDates(this);
    this.javaSqlDates = new JavaSqlDates(this);
    this.javaSqlTimestamps = new JavaSqlTimestamps(this);
    this.jodaDateTimes = new JodaDateTimes(this);
    this.jodaLocalDates = new JodaLocalDates(this);
    this.jodaPeriods = new JodaPeriods(this);

    this.bigDecimals = new BigDecimals(this);
    this.bigIntegers = new BigIntegers(this);
    this.urls = new Urls(this);
    this.uuids = new Uuids(this);

    this.isisPasswords = new IsisPasswords(this);
    this.isisMoneys = new IsisMoneys(this);
    this.isisBlobs = new IsisBlobs(this);
    this.isisClobs = new IsisClobs(this);
}