Interface TypeRegistrationExtension


  • public interface TypeRegistrationExtension
    An extension called during registration of types to derive and register additional types for a given type.
    • Method Detail

      • deriveTypes

        void deriveTypes​(TypeRegistrationExtension.Registry registry,
                         java.lang.reflect.Type type)
                  throws DefinitionException
        Called during registration of new types to allow the extension to register further types that can be directly derived from the given Type. For example, the given type could have special annotations which define further types.
        Parameters:
        type - a Type used as a base for derivation, never null
        registry - a TypeRegistrationExtension.Registry where derived types can be registered, never null
        Throws:
        DefinitionException - when a definition problem was encountered during derivation