此内容没有您所选择的语言版本。
6.4. Custom Externalizer ID Values
Advanced externalizers can be assigned custom IDs if desired. Some ID ranges are reserved for other modules or frameworks and must be avoided:
| ID Range | Reserved For |
|---|---|
| 1000-1099 | The Infinispan Tree Module |
| 1100-1199 | Red Hat JBoss Data Grid Server modules |
| 1200-1299 | Hibernate Infinispan Second Level Cache |
| 1300-1399 | JBoss Data Grid Lucene Directory |
| 1400-1499 | Hibernate OGM |
| 1500-1599 | Hibernate Search/Infinispan Query |
6.4.1. Customize the Externalizer ID (Declaratively) 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Customize the advanced externalizer ID declaratively (via XML) as follows:
Procedure 6.2. Customizing the Externalizer ID (Declaratively)
- Add the
globalelement to theinfinispanelement:<infinispan> <global /> </infinispan>
<infinispan> <global /> </infinispan>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the
serializationelement to theglobalelement as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the
advancedExternalizerelement to add information about the new advanced externalizer as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Define the externalizer ID using the
idattribute as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the selected ID is not from the range of IDs reserved for other modules. - Define the externalizer class using the
externalizerClassattribute as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace the $IdViaAnnotationObj and $AdvancedExternalizer values as required.