Package io.github.krandom.api
Interface ObjectFactory
-
- All Implemented Interfaces:
public interface ObjectFactory
Strategy interface for object creation.
Mahmoud Ben Hassine ([email protected])
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> T
createInstance(Class<T> type, RandomizerContext context)
Create a new instance of type
in the given randomization context.-
-
Method Detail
-
createInstance
abstract <T extends Any> T createInstance(Class<T> type, RandomizerContext context)
Create a new instance of
type
in the given randomization context.- Parameters:
type
- to createcontext
- current randomization context- Returns:
new instance of the given type
-
-
-
-