Interface CommandDispatcherFactory
-
public interface CommandDispatcherFactoryFactory for creating a command dispatcher.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <C> CommandDispatcher<C>createCommandDispatcher(Object id, C context)Creates a new command dispatcher using the specified identifier and context.default <C> CommandDispatcher<C>createCommandDispatcher(Object id, C context, ClassLoader loader)Creates a new command dispatcher using the specified identifier and context, whose marshaller is configured via the specified class loader.GroupgetGroup()Returns the group upon which the this command dispatcher operates.
-
-
-
Method Detail
-
getGroup
Group getGroup()
Returns the group upon which the this command dispatcher operates.- Returns:
- a group
-
createCommandDispatcher
<C> CommandDispatcher<C> createCommandDispatcher(Object id, C context)
Creates a new command dispatcher using the specified identifier and context. The resultingCommandDispatcherwill communicate with those dispatchers within the group sharing the same identifier.- Parameters:
id- a unique identifier for this dispatchercontext- the context used for executing commands- Returns:
- a new command dispatcher
-
createCommandDispatcher
default <C> CommandDispatcher<C> createCommandDispatcher(Object id, C context, ClassLoader loader)
Creates a new command dispatcher using the specified identifier and context, whose marshaller is configured via the specified class loader. The resultingCommandDispatcherwill communicate with those dispatchers within the group sharing the same identifier.- Parameters:
id- a unique identifier for this dispatchercontext- the context used for executing commands- Returns:
- a new command dispatcher
-
-