public interface ModuleCommandFactory
Scopes.GLOBAL
component and as such cannot have Inject
methods referring to
Scopes.NAMED_CACHE
scoped components. For such components, use a corresponding Scopes.NAMED_CACHE
-scoped
ModuleCommandInitializer
.
Modifier and Type | Method and Description |
---|---|
ReplicableCommand |
fromStream(byte commandId,
Object[] args)
Construct and initialize a
ReplicableCommand based on the command
id and argument array passed in. |
Map<Byte,Class<? extends ReplicableCommand>> |
getModuleCommands()
Provides a map of command IDs to command types of all the commands handled by the command factory instance.
|
Map<Byte,Class<? extends ReplicableCommand>> getModuleCommands()
ReplicableCommand fromStream(byte commandId, Object[] args)
ReplicableCommand
based on the command
id and argument array passed in.commandId
- command id to constructargs
- array of arguments with which to initialize the ReplicableCommandCopyright © 2012 JBoss by Red Hat. All Rights Reserved.