Package dev.morphia.mapping
Class DiscriminatorLookup
- java.lang.Object
-
- dev.morphia.mapping.DiscriminatorLookup
-
public final class DiscriminatorLookup extends Object
Provides lookup capabilities to find a type by its discriminatorDeveloper note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description DiscriminatorLookup(ClassLoader classLoader)
Creates a new lookup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModel(EntityModel entityModel)
Adds a model to the mapClass<?>
lookup(String discriminator)
Looks up a discriminator value
-
-
-
Constructor Detail
-
DiscriminatorLookup
public DiscriminatorLookup(ClassLoader classLoader)
Creates a new lookup- Parameters:
classLoader
- the classloader to use for look ups
-
-
Method Detail
-
addModel
public void addModel(EntityModel entityModel)
Adds a model to the map- Parameters:
entityModel
- the model
-
-