Package org.jgrapes.core
Class NamedChannel
java.lang.Object
org.jgrapes.core.NamedChannel
This class provides channels that are identified by a name
(
string).Instances of this class represent channels that use their name as value for matching channels with handlers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the channel as its value.booleaninthashCode()booleanisEligibleFor(Object value) Returnstrueif thevaluematches the name of this channel or is the broadcast channel’s value.toString()
-
Constructor Details
-
NamedChannel
Creates a new named channel with the given name.- Parameters:
name- the channel’s name
-
-
Method Details
-
defaultCriterion
Returns the name of the channel as its value.- Specified by:
defaultCriterionin interfaceEligible- Returns:
- the name
- See Also:
-
isEligibleFor
Returnstrueif thevaluematches the name of this channel or is the broadcast channel’s value.- Specified by:
isEligibleForin interfaceChannel- Specified by:
isEligibleForin interfaceEligible- Parameters:
value- the criterion- Returns:
- true, if is eligible for
- See Also:
-
toString
-
hashCode
-
equals
-