public interface ModuleCommandFactory
Scopes.GLOBALcomponent and as such cannot have
Injectmethods referring to
Scopes.NAMED_CACHEscoped components. For such components, use a corresponding
|Modifier and Type||Method and Description|
Construct and initialize a
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)
ReplicableCommandbased on the command id and argument array passed in.
commandId- command id to construct
args- array of arguments with which to initialize the ReplicableCommand
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.