public class DummyClassGeneratorProvider extends Object
| Constructor and Description |
|---|
DummyClassGeneratorProvider(String targetPackage)
Creates a new dummy class provider.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Class<T> |
create(Class<T> type,
Class<? extends Throwable> exceptionType)
Creates a new class extended based on the provided
type with the
provided exceptionType to throw for all methods provided by the
target class. |
public DummyClassGeneratorProvider(String targetPackage)
targetPackage - The target packagepublic <T> Class<T> create(Class<T> type, Class<? extends Throwable> exceptionType)
type with the
provided exceptionType to throw for all methods provided by the
target class.T - The type of classtype - The type of class to generateexceptionType - The exception to throw