Sample Infinispan Module
The purpose of this sample module is to demonstrate the changes made to Infinispan in ISPN-256 to allow modules - such as
query - to implement their own commands outside of the
This sample is a fully working sample and the sample usage class in
src/test/java can be examined and even run to demonstrate custom commands working. TRACE level logging is recommended to examine what goes on.
For this to work, you currently need to build and install Infinispan 5.0.0-SNAPSHOT from this topic branch, until it is merged into upstream.
Instructions for module authors
Here's what you need to do:
- Create a
infinispan-module.propertiesfile (see sample)
- Declare implementation names of the
ModuleCommandInitializerimplementations you've created for your module in the properties file
- Actually implement them to be able to construct your new commands
- Implement your commands and the rest of your module
Please provide feedback on this on ISPN-256.