public class ManagedCommandDispatcherFactory extends Object implements AutoCloseableCommandDispatcherFactory
CommandDispatcherFactory decorator that allows multiple invocations of createCommandDispatcher(Object, Object) for a given identifier,
returning the same managed CommandDispatcher instance to each caller.
The managed CommandDispatcher instance is only closed after CommandDispatcher.close() is invoked on all instances.| Constructor and Description |
|---|
ManagedCommandDispatcherFactory(AutoCloseableCommandDispatcherFactory factory) |
ManagedCommandDispatcherFactory(CommandDispatcherFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<C> CommandDispatcher<C> |
createCommandDispatcher(Object id,
C context) |
Group |
getGroup() |
public ManagedCommandDispatcherFactory(AutoCloseableCommandDispatcherFactory factory)
public ManagedCommandDispatcherFactory(CommandDispatcherFactory factory)
public void close()
close in interface AutoCloseableclose in interface AutoCloseableCommandDispatcherFactorypublic Group getGroup()
getGroup in interface CommandDispatcherFactorypublic <C> CommandDispatcher<C> createCommandDispatcher(Object id, C context)
createCommandDispatcher in interface CommandDispatcherFactoryCopyright © 2018 JBoss by Red Hat. All rights reserved.