Class DiscriminatorLookup


  • public final class DiscriminatorLookup
    extends Object
    Provides lookup capabilities to find a type by its discriminator
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • 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
      • lookup

        public Class<?> lookup​(String discriminator)
        Looks up a discriminator value
        Parameters:
        discriminator - the value to search witih
        Returns:
        the mapped class