public class ManagedCommandDispatcherFactory extends Object implements AutoCloseableCommandDispatcherFactory
CommandDispatcherFactory decorator that allows multiple invocations of CommandDispatcherFactory.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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<C> CommandDispatcher<C> |
createCommandDispatcher(Object id,
C context,
ClassLoader loader) |
Group |
getGroup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCommandDispatcherpublic ManagedCommandDispatcherFactory(AutoCloseableCommandDispatcherFactory 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, ClassLoader loader)
Copyright © 2020 JBoss by Red Hat. All rights reserved.