public interface CustomCollectionRegistrar
META-INF/spring.factories.| Modifier and Type | Method and Description |
|---|---|
default Collection<Class<?>> |
getAllowedPaginationReturnTypes()
Return all types that are considered valid return types for methods using pagination.
|
Collection<Class<?>> |
getCollectionTypes()
Returns all types that are supposed to be considered collections.
|
Collection<Class<?>> |
getMapTypes()
Returns all types that are supposed to be considered maps.
|
default boolean |
isAvailable()
Returns whether the registrar is available, meaning whether it can be used at runtime.
|
void |
registerConvertersIn(ConverterRegistry registry)
Register all converters to convert instances of the types returned by
getCollectionTypes() and
getMapTypes() from an to their Java-native counterparts. |
Function<Object,Object> |
toJavaNativeCollection()
Returns a
Function to convert instances of their Java-native counterpart. |
default boolean isAvailable()
Collection<Class<?>> getMapTypes()
toJavaNativeCollection().toJavaNativeCollection()Collection<Class<?>> getCollectionTypes()
toJavaNativeCollection().toJavaNativeCollection()default Collection<Class<?>> getAllowedPaginationReturnTypes()
List but no Sets, as pagination usually involves sorting.void registerConvertersIn(ConverterRegistry registry)
getCollectionTypes() and
getMapTypes() from an to their Java-native counterparts.registry - will never be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.