|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModuleCommandFactory
Modules which wish to implement their own commands and visitors must also provide an implementation of this interface and declare it in their infinispan-module.properties file under key infinispan.module.command.factory.
Implementations must be public classes with a public, no-arg constructor for instantiation. Note that this is aScopes.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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 ReplicableCommand
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||