public final class CheckerUtility extends Object implements UtilMessages
| Modifier and Type | Field and Description |
|---|---|
private static JRLogger |
LOGGER
The class logger.
|
ARGUMENT_DETAIL, ARGUMENT_LIST, BAD_CANONICAL_PATH, BROKEN_API_NO_METHOD, BROKEN_API_WRONG_PARAMETERS, BROKEN_WAVE_BAD_ITEM_LIST, BROKEN_WAVE_SENT, CANT_READ_CACHED_JAR_FILE, FILE_UNREADABLE, GENERIC_TYPE_ERROR_1, GENERIC_TYPE_ERROR_2, NO_ANNOTATION_PROPERTY, NO_ANNOTATION_PROPERTY_VALUE, NO_CONSTRUCTOR, PARSE_CACHED_JAR_FILE, RESOURCE_IGNORED, USE_DEFAULT_CLASSLOADER, USE_JNLP_CLASSLOADER, WAVE_HANDLER_METHOD_REQUIRED| Modifier | Constructor and Description |
|---|---|
private |
CheckerUtility()
Private Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
checkMethodSignature(Method method,
List<WaveItem<?>> wParams)
Compare method parameters with wave parameters.
|
static void |
checkWave(Wave wave)
Check that wave has all data required by the WaveType contract (if any).
|
static void |
checkWaveTypeContract(Class<? extends WaveReady> waveReadyClass,
WaveType... waveTypes)
Check if wave Type contract is respected for the the given
WaveReady class. |
private static final JRLogger LOGGER
public static void checkWaveTypeContract(Class<? extends WaveReady> waveReadyClass, WaveType... waveTypes)
WaveReady class.
Throws a Runtime exception is Wave Contract is broken.waveReadyClass - the WaveReady class to checkwaveTypes - the contract to respect (could be several WaveType)private static boolean checkMethodSignature(Method method, List<WaveItem<?>> wParams)
method - the method to checkwParams - the wave parameters taht define the contractpublic static void checkWave(Wave wave)
wave - the wave to checkCopyright © 2011–2014 JRebirth OSS. All rights reserved.