Package org.springframework.data.mongodb
Class MongoManagedTypes
java.lang.Object
org.springframework.data.mongodb.MongoManagedTypes
- All Implemented Interfaces:
ManagedTypes
- Since:
- 4.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionstatic MongoManagedTypes
empty()
Factory method to return an emptyMongoManagedTypes
object.void
static MongoManagedTypes
Factory method used to constructMongoManagedTypes
from the given array oftypes
.static MongoManagedTypes
from
(ManagedTypes managedTypes) Wraps an existingManagedTypes
object withMongoManagedTypes
.static MongoManagedTypes
fromIterable
(Iterable<? extends Class<?>> types) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.domain.ManagedTypes
toList
-
Method Details
-
from
Wraps an existingManagedTypes
object withMongoManagedTypes
.- Parameters:
managedTypes
-- Returns:
-
from
Factory method used to constructMongoManagedTypes
from the given array oftypes
.- Parameters:
types
- array oftypes
used to initialize theManagedTypes
; must not be null.- Returns:
- new instance of
MongoManagedTypes
initialized fromtypes
.
-
fromIterable
- Parameters:
types
-Iterable
oftypes
used to initialize theManagedTypes
; must not be null.- Returns:
- new instance of
MongoManagedTypes
initialized the given, requiredIterable
oftypes
.
-
empty
Factory method to return an emptyMongoManagedTypes
object.- Returns:
- an empty
MongoManagedTypes
object.
-
forEach
- Specified by:
forEach
in interfaceManagedTypes
-