public final class DummyObjectProvider extends Object
CatalogType).
The generated class implements all of the interface's methods, but
throws an UnsupportedOperationException with an informative error message.
| Constructor and Description |
|---|
DummyObjectProvider() |
| Modifier and Type | Method and Description |
|---|---|
static <T,I extends T> |
createExtendedFor(Class<T> type,
String fieldName)
Creates a new dummy class implementing the specified interface.
|
static <T> T |
createFor(Class<T> type,
String fieldName)
Creates a new dummy class implementing the specified interface.
|
public static <T> T createFor(Class<T> type, String fieldName)
T - The type of class to be createdtype - The interface to generate a dummy class forfieldName - field name to pass to constructorpublic static <T,I extends T> I createExtendedFor(Class<T> type, String fieldName)
T - Base type for the dummy classI - Interface for the dummy class to implementtype - The interface to generate a dummy class forfieldName - field name to pass to constructor