public class DispatchFactory extends Object
DispatchFactory
is used to provide singleton instances of
NotificationDispatcher
based on a supplied type.Modifier and Type | Method and Description |
---|---|
NotificationDispatcher |
getDispatcher(String type)
Gets a dispatcher based on the type.
|
static DispatchFactory |
getInstance()
Gets the single instance of this factory.
|
void |
register(String type,
NotificationDispatcher dispatcher)
Registers a dispatcher instance with a type.
|
public static DispatchFactory getInstance()
public void register(String type, NotificationDispatcher dispatcher)
type
- the typedispatcher
- the dispatcher to register with the type.public NotificationDispatcher getDispatcher(String type)
type
- the type (not null
).null
if none.Copyright © 2022 Apache Software Foundation. All rights reserved.