* @param component the wave ready
*/
public static void manageOnWaveAnnotation(final WaveReady<?> component) {
// Retrieve class annotation
final OnWave clsOnWave = component.getClass().getAnnotation(OnWave.class);
if (clsOnWave != null) {
manageUniqueWaveTypeAction(component, clsOnWave.value(), null);
manageMultipleWaveTypeAction(component, clsOnWave, null);
}
// Iterate over each annotated Method
OnWave onWave = null;
for (final Method method : ClassUtility.getAnnotatedMethods(component.getClass(), OnWave.class)) {
onWave = method.getAnnotation(OnWave.class);
manageUniqueWaveTypeAction(component, onWave.value(), method);
manageMultipleWaveTypeAction(component, onWave, method);
}
}