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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the channel as its value.boolean
int
hashCode()
boolean
isEligibleFor
(Object value) Returnstrue
if thevalue
matches 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:
defaultCriterion
in interfaceEligible
- Returns:
- the name
- See Also:
-
isEligibleFor
Returnstrue
if thevalue
matches the name of this channel or is the broadcast channel’s value.- Specified by:
isEligibleFor
in interfaceChannel
- Specified by:
isEligibleFor
in interfaceEligible
- Parameters:
value
- the criterion- Returns:
- true, if is eligible for
- See Also:
-
toString
-
hashCode
-
equals
-