Package com.norconex.commons.lang.bean.spi

# Class BasePolymorphicTypeProvider

java.lang.Object
com.norconex.commons.lang.bean.spi.BasePolymorphicTypeProvider

All Implemented Interfaces:
  `PolymorphicTypeProvider`

public abstract class BasePolymorphicTypeProvider extends Object implements PolymorphicTypeProvider
Abstract implementation of `PolymorphicTypeProvider` offering convenience methods to facilitate registration.

Since:
  3.0.0

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `BasePolymorphicTypeProvider.Registry`
  Helper for registering polymorphic types and sub-types.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BasePolymorphicTypeProvider()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final MultiValuedMap<Class<?>,Class<?>>`
  `getPolymorphicTypes()`
  Gets polymorphic types and their sub-types for auto-registration by `BeanMapper` (or for custom use)
  `protected abstract void`
  `register(BasePolymorphicTypeProvider.Registry registry)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BasePolymorphicTypeProvider

    public BasePolymorphicTypeProvider()

- ## Method Details

  - ### getPolymorphicTypes

    public final MultiValuedMap<Class<?>,Class<?>> getPolymorphicTypes()
    Description copied from interface: `PolymorphicTypeProvider`
    Gets polymorphic types and their sub-types for auto-registration by `BeanMapper` (or for custom use).-
    Specified by:
      `getPolymorphicTypes` in interface `PolymorphicTypeProvider`
    Returns:
      a map keyed by polymorphic types and valued by their subtypes

  - ### register

    protected abstract void register(BasePolymorphicTypeProvider.Registry registry)