public class DefaultAliasResolutionService implements ConfigurableAliasResolutionService
Default interface AliasResolutionService
implementation suitable for use in most environments.
Indirectly implements interface AliasResolverRegistry
as registration API through the interface ConfigurableAliasResolutionService
interface.
public static com.weedow.spring.data.search.alias.DefaultAliasResolutionService.Companion Companion
public DefaultAliasResolutionService()
Default interface AliasResolutionService
implementation suitable for use in most environments.
Indirectly implements interface AliasResolverRegistry
as registration API through the interface ConfigurableAliasResolutionService
interface.
public void addAliasResolver(@NotNull AliasResolver aliasResolver)
Adds an interface AliasResolver
in the registry.
aliasResolver
- interface AliasResolver
to be addedinterface AliasResolver
@NotNull public java.lang.String resolve(@NotNull java.lang.Class<?> parentClass, @NotNull java.lang.String alias)
Resolve the given alias to the name of the field present in the given Class.
If the field name related to the alias is not found, the mathod returns the given alias.
parentClass
- Class where to find the fieldalias
- alias to be resolved