Add self types to DSL interfaces to make overrides by backends easier

Description

See for example org.hibernate.search.engine.backend.types.dsl.StandardIndexFieldTypeOptionsStep: there is a "self type" (S) which is left as a wildcard in org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactory#asInteger and can thus be set to a more precise, backend-specific type in extensions of IndexFieldTypeFactory.

We'll need these for Elasticsearch-specific extensions to the aggregation DSL, in particular.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure