이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
global
element to theinfinispan
element:<infinispan> <global /> </infinispan>
<infinispan> <global /> </infinispan>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the
serialization
element to theglobal
element as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the
advancedExternalizer
element 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
id
attribute 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
externalizerClass
attribute as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace the $IdViaAnnotationObj and $AdvancedExternalizer values as required.