public class OutputEmitters extends Object
OutputEmitter interface.
Construct and return new instances of these classes.| Modifier and Type | Field and Description |
|---|---|
static io.github.lukehutch.fastclasspathscanner.FastClasspathScanner |
cps |
static String |
DEFAULT_EMITTER |
static Map<String,Class<OutputEmitter>> |
emitterRegistry |
| Constructor and Description |
|---|
OutputEmitters() |
| Modifier and Type | Method and Description |
|---|---|
static OutputEmitter |
get(String className)
Instantiates an
OutputEmitter corresponding to the class with the provided name in the emitter registry. |
static OutputEmitter |
get(String className,
Map<String,String> arguments) |
static Set<String> |
getEmitterList() |
static Map<String,Class<OutputEmitter>> |
scanClasspathForEmitters()
Search the classpath for classes implementing
OutputEmitter and add them to the emitter registry |
public static final String DEFAULT_EMITTER
public static final Map<String,Class<OutputEmitter>> emitterRegistry
public static final io.github.lukehutch.fastclasspathscanner.FastClasspathScanner cps
public static Map<String,Class<OutputEmitter>> scanClasspathForEmitters()
OutputEmitter and add them to the emitter registrypublic static OutputEmitter get(String className)
OutputEmitter corresponding to the class with the provided name in the emitter registry.
If the emitter cannot be instantiated an instance of the default emitter (NullEmitter) is returned.OutputEmitterpublic static OutputEmitter get(String className, Map<String,String> arguments)
Copyright © 2015. All rights reserved.