|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface SearchableClassConverter
Specifies a class as being "convertable" by Compass.
Mostly used to convert classes into a String value that will be stored in the index. Applies toSearchable class
SearchableId and SearchableProperty annotations.
Requires a converter that implements the Converter interface. Usually
will extend the AbstractBasicConverter
(since for other cases, the SearchableComponent can be used).
Alloes for additional settings to be passes to the converter using settings().
For the converter to be injected with the specified settings, it need to implement the
CompassConfigurable interface.
| Required Element Summary | |
|---|---|
Class<? extends Converter> |
value
The converter that will be used to convert the class. |
| Optional Element Summary | |
|---|---|
SearchSetting[] |
settings
Additional settings to inject to the converter. |
| Element Detail |
|---|
public abstract Class<? extends Converter> value
SearchableComponent
can be used). Compass comes with a handy class for such converters:
AbstractBasicConverter.
public abstract SearchSetting[] settings
CompassConfigurable for them to be injected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||