public class ActionConfigManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ContextInjectorComponent |
contextInjectorComponent |
Constructor and Description |
---|
ActionConfigManager() |
Modifier and Type | Method and Description |
---|---|
void |
bindAnnotationConfig(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
java.lang.Class<? extends ActionConfig> actionConfigClass)
Binds action annotation and the action config.
|
protected ActionConfig |
createActionConfig(java.lang.Class<? extends ActionConfig> actionConfigClass) |
boolean |
hasActionAnnotationOn(java.lang.reflect.AnnotatedElement annotatedElement)
Returns
true if annotated element as action annotation on it. |
ActionConfig |
lookup(java.lang.Class actionTypeOrAnnotationType)
Lookup for the action configuration.
|
ActionAnnotationValues |
readAnnotationValue(java.lang.reflect.AnnotatedElement annotatedElement)
Reads annotation value from annotated element.
|
void |
registerAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Registers action configuration for given annotation.
|
protected ActionConfig |
registerNewActionConfiguration(java.lang.Class<? extends ActionConfig> actionConfigClass)
Registers action configuration for given type.
|
<T extends ActionConfig> |
with(java.lang.Class<T> actionConfigType,
java.util.function.Consumer<T> actionConfigConsumer)
Fetch some action config and consumes it.
|
@PetiteInject protected ContextInjectorComponent contextInjectorComponent
public void registerAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
ActionConfig
is created
and stored.public void bindAnnotationConfig(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.Class<? extends ActionConfig> actionConfigClass)
protected ActionConfig registerNewActionConfiguration(java.lang.Class<? extends ActionConfig> actionConfigClass)
public ActionConfig lookup(java.lang.Class actionTypeOrAnnotationType)
public <T extends ActionConfig> void with(java.lang.Class<T> actionConfigType, java.util.function.Consumer<T> actionConfigConsumer)
public boolean hasActionAnnotationOn(java.lang.reflect.AnnotatedElement annotatedElement)
true
if annotated element as action annotation on it.public ActionAnnotationValues readAnnotationValue(java.lang.reflect.AnnotatedElement annotatedElement)
null
.protected ActionConfig createActionConfig(java.lang.Class<? extends ActionConfig> actionConfigClass)
Copyright © 2003-present Jodd Team