Package io.github.krandom
Class ObjenesisObjectFactory
-
- All Implemented Interfaces:
-
io.github.krandom.api.ObjectFactory
public class ObjenesisObjectFactory implements ObjectFactory
Objenesis based factory to create "fancy" objects: immutable java beans, generic types, abstract and interface types.
Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description ObjenesisObjectFactory()
-
Method Summary
Modifier and Type Method Description <T> T
createInstance(@NotNull() Class<T> type, @NotNull() RandomizerContext context)
Create a new instance of type
in the given randomization context.-
-
Method Detail
-
createInstance
<T> T createInstance(@NotNull() Class<T> type, @NotNull() 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
-
-
-
-