Interface Resolver<T,​A extends Annotation,​V>

  • Type Parameters:
    T - Field instance type
    A - Annotation to resolve
    V - Value type
    All Known Subinterfaces:
    RIdResolver<A,​V>
    All Known Implementing Classes:
    LongGenerator, RequiredIdResolver, UUIDGenerator

    public interface Resolver<T,​A extends Annotation,​V>
    A resolver is used to provide value based on contextual parameters
    Author:
    Rui Gu (https://github.com/jackygurui)
    • Method Detail

      • resolve

        V resolve​(T value,
                  A annotation,
                  String idFieldName,
                  RedissonClient redisson)
        Used to provide a value instance based on contextual parameters. Actual behavior may vary depending on implementation
        Parameters:
        value - object
        annotation - object
        idFieldName - name of field
        redisson - instance
        Returns:
        resolved value