public final class ControllerFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<C> C |
createAndInitialize(java.lang.Class<C> c,
java.lang.String className,
Configuration configuration)
This is a helper method trying to find, create and initialize the given class, using its public constructor which accepts a single
Configuration . |
static ControllerFactory |
getInstance(Configuration configuration)
Get an instance of the controller factory for the given configuration.
|
public static ControllerFactory getInstance(Configuration configuration)
configuration
- The configuration to usepublic <C> C createAndInitialize(java.lang.Class<C> c, java.lang.String className, Configuration configuration)
Configuration
.C
- The type of the returned class.c
- This class defines the expected result of the method call.classname
- The name of the class to be created.configuration
- The configuration which will be used to initialize the class in question.Copyright 2017 Kieker Project, http://kieker-monitoring.net