public final class ComponentEnhancer extends Object implements LinkMessages
| Modifier and Type | Field and Description |
|---|---|
private static JRLogger |
LOGGER
The class logger.
|
CALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, USE_DEFAULT_WAVE_HANDLER, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR| Modifier | Constructor and Description |
|---|---|
private |
ComponentEnhancer()
Private Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canProcessAnnotation(Class<? extends WaveReady<?>> componentClass)
Check if annotation can be processed for the given class.
|
static Map<String,List<Method>> |
defineLifecycleMethod(WaveReady<?> component)
Parse all method to search annotated methods that are attached to a lifecylce phase.
|
private static void |
inject(FacadeReady<?> component,
Field field,
Object... keyParts)
Inject a component into the property of an other.
|
static void |
injectComponent(WaveReady<?> component)
Inject component.
|
private static void |
manageLifecycleAnnotation(WaveReady<?> component,
Map<String,List<Method>> lifecycleMethod,
Class<? extends Annotation> annotationClass)
Store annotated method related to a lifecycle phase.
|
private static void |
manageMultipleWaveTypeAction(WaveReady<?> waveReady,
OnWave onWave,
Method method)
|
static void |
manageOnWaveAnnotation(WaveReady<?> component)
Manage
OnWave annotation (defined on type and method). |
private static void |
manageUniqueWaveTypeAction(WaveReady<?> component,
String waveActionName,
Method method)
|
private static final JRLogger LOGGER
public static boolean canProcessAnnotation(Class<? extends WaveReady<?>> componentClass)
componentClass - the class to checkpublic static void injectComponent(WaveReady<?> component)
component - the componentprivate static void inject(FacadeReady<?> component, Field field, Object... keyParts)
component - the componentfield - the fieldkeyParts - the key partspublic static Map<String,List<Method>> defineLifecycleMethod(WaveReady<?> component)
component - the JRebirth component to manageprivate static void manageLifecycleAnnotation(WaveReady<?> component, Map<String,List<Method>> lifecycleMethod, Class<? extends Annotation> annotationClass)
component - the JRebirth component to managelifecycleMethod - the map that store methodsannotationClass - the annotation related to lifecycle phasepublic static void manageOnWaveAnnotation(WaveReady<?> component)
OnWave annotation (defined on type and method).component - the wave readyprivate static void manageUniqueWaveTypeAction(WaveReady<?> component, String waveActionName, Method method)
component - the wave readywaveActionName - the WaveType unique namemethod - the wave handler methodCopyright © 2011–2014 JRebirth OSS. All rights reserved.