Interface TypeRegistrationExtension.Registry

  • Enclosing interface:
    TypeRegistrationExtension

    public static interface TypeRegistrationExtension.Registry
    Allows registration of newly derived types.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(java.lang.reflect.Field field, java.lang.reflect.Type ownerType)
      Adds a derived type given a Field and the field's owner Type.
      void add​(java.lang.reflect.Method method, java.lang.reflect.Type ownerType)
      Adds a derived type given a Method and the method's owner Type.
      void add​(java.lang.reflect.Type type)
      Adds a derived type given a Type.
    • Method Detail

      • add

        void add​(java.lang.reflect.Field field,
                 java.lang.reflect.Type ownerType)
          throws DefinitionException
        Adds a derived type given a Field and the field's owner Type.
        Parameters:
        field - a Field, cannot be null
        ownerType - an owner Type, cannot be null
        Throws:
        DefinitionException - when a definition problem was encountered during registration
      • add

        void add​(java.lang.reflect.Method method,
                 java.lang.reflect.Type ownerType)
          throws DefinitionException
        Adds a derived type given a Method and the method's owner Type.
        Parameters:
        method - a Method, cannot be null
        ownerType - an owner Type, cannot be null
        Throws:
        DefinitionException - when a definition problem was encountered during registration
      • add

        void add​(java.lang.reflect.Type type)
          throws DefinitionException
        Adds a derived type given a Type.
        Parameters:
        type - a Type to add, cannot be null
        Throws:
        DefinitionException - when a definition problem was encountered during registration