Interface FromDocumentFieldValueConvertContextExtension<T>
- Type Parameters:
T
- The type of extended contexts.
- All Superinterfaces:
FromDocumentValueConvertContextExtension<T>
- All Known Implementing Classes:
HibernateOrmExtension
@Deprecated
public interface FromDocumentFieldValueConvertContextExtension<T>
extends FromDocumentValueConvertContextExtension<T>
Deprecated.
An extension to
FromDocumentFieldValueConvertContext
, allowing to access non-standard context
specific to a given mapper.
WARNING: while this type is API, because instances should be manipulated by users,
all of its methods are considered SPIs and therefore should never be called or implemented directly by users.
In short, users are only expected to get instances of this type from an API (SomeExtension.get()
)
and pass it to another API.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionextendOptional
(FromDocumentFieldValueConvertContext original, BackendSessionContext sessionContext) Deprecated.Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(FromDocumentValueConvertContext original, BackendSessionContext sessionContext) Deprecated.Attempt to extend a given context, returning an emptyOptional
in case of failure.
-
Method Details
-
extendOptional
default Optional<T> extendOptional(FromDocumentValueConvertContext original, BackendSessionContext sessionContext) Deprecated.Description copied from interface:FromDocumentValueConvertContextExtension
Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceFromDocumentValueConvertContextExtension<T>
- Parameters:
original
- The original, non-extendedFromDocumentValueConvertContext
.sessionContext
- ABackendSessionContext
.- Returns:
- An optional containing the extended context (
FromDocumentValueConvertContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
Optional<T> extendOptional(FromDocumentFieldValueConvertContext original, BackendSessionContext sessionContext) Deprecated.Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Parameters:
original
- The original, non-extendedFromDocumentFieldValueConvertContext
.sessionContext
- ABackendSessionContext
.- Returns:
- An optional containing the extended context (
FromDocumentFieldValueConvertContextExtension
) in case of success, or an empty optional otherwise.
-
FromDocumentValueConverter
withFromDocumentValueConvertContext
andFromDocumentValueConvertContextExtension
instead.