Case
- the type of the caseHandler
- the type of the handlerpublic class DefaultHandlers<Case,Handler> extends Object implements Handlers<Case,Handler>
Handlers
. Uses a map to hold a registry of handlers.Constructor and Description |
---|
DefaultHandlers() |
Modifier and Type | Method and Description |
---|---|
Collection<Handler> |
get(String context,
Case requestCase)
Gets all handlers that match given
context and requestCase . |
void |
register(BiPredicate<String,Case> handlerSelector,
Handler handler)
Registers a
handler that can handle instructions matching given handlerSelector predicate. |
public Collection<Handler> get(String context, Case requestCase)
Handlers
context
and requestCase
.public void register(BiPredicate<String,Case> handlerSelector, Handler handler)
Handlers
handler
that can handle instructions matching given handlerSelector
predicate.Copyright © 2010–2020. All rights reserved.