java.lang.Object
org.springframework.data.mongodb.MongoManagedTypes
- All Implemented Interfaces:
ManagedTypes
- Since:
- 4.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionstatic MongoManagedTypesempty()Factory method to return an emptyMongoManagedTypesobject.voidstatic MongoManagedTypesFactory method used to constructMongoManagedTypesfrom the given array oftypes.static MongoManagedTypesfrom(ManagedTypes managedTypes) Wraps an existingManagedTypesobject withMongoManagedTypes.static MongoManagedTypesfromIterable(Iterable<? extends Class<?>> types) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.domain.ManagedTypes
toList
-
Method Details
-
from
Wraps an existingManagedTypesobject withMongoManagedTypes.- Parameters:
managedTypes-- Returns:
-
from
Factory method used to constructMongoManagedTypesfrom the given array oftypes.- Parameters:
types- array oftypesused to initialize theManagedTypes; must not be null.- Returns:
- new instance of
MongoManagedTypesinitialized fromtypes.
-
fromIterable
- Parameters:
types-Iterableoftypesused to initialize theManagedTypes; must not be null.- Returns:
- new instance of
MongoManagedTypesinitialized the given, requiredIterableoftypes.
-
empty
Factory method to return an emptyMongoManagedTypesobject.- Returns:
- an empty
MongoManagedTypesobject.
-
forEach
- Specified by:
forEachin interfaceManagedTypes
-