Package org.jgrapes.core.annotation
Class HandlerDefinition.ChannelReplacements
java.lang.Object
java.util.AbstractMap<Class<? extends Channel>,Object[]>
java.util.HashMap<Class<? extends Channel>,Object[]>
org.jgrapes.core.annotation.HandlerDefinition.ChannelReplacements
- Enclosing class:
HandlerDefinition
public static class HandlerDefinition.ChannelReplacements
extends HashMap<Class<? extends Channel>,Object[]>
Represents channel (criteria) replacements that are to
be applied to
channels
elements of Handler
annotations.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a replacements to the replacements.create()
Create a new replacements specification object.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ChannelReplacements
public ChannelReplacements()
-
-
Method Details
-
create
Create a new replacements specification object.- Returns:
- the channel replacements
-
add
public HandlerDefinition.ChannelReplacements add(Class<? extends Channel> annotationCriterion, Channel... replacements) Adds a replacements to the replacements.- Parameters:
annotationCriterion
- the criterion used in the annotationreplacements
- the replacements- Returns:
- the channel replacements for easy chaining
-