com.andrewmccall.faker.Config.scala Maven / Gradle / Ivy
The newest version!
package com.andrewmccall.faker
import java.util.Random
import java.util.concurrent.ThreadLocalRandom
import com.andrewmccall.faker.yaml.YamlData
class Config(val locale: String = Faker.defaultLocale, val random: Random = ThreadLocalRandom.current(), val data: Data = new YamlData()) {
var modules: Map[String, (_) => String] = _
def loadClasses(): Unit = {
import org.reflections.Reflections
val reflections = new Reflections("com.andrewmccall.faker.modules")
//val annotated = reflections.getTypesAnnotatedWith(classOf[com.andrewmccall.faker.modules.Module])
}
}