Interface RIdResolver<A extends RId,​V>

    • Method Detail

      • resolve

        V resolve​(Class<?> cls,
                  A annotation,
                  String idFieldName,
                  RedissonClient redisson)
        RLiveObjectService instantiate the class and invokes this method to get a value used as the value for the field with RId annotation.
        Specified by:
        resolve in interface Resolver<Class<?>,​A extends RId,​V>
        Parameters:
        cls - the class of the LiveObject.
        annotation - the RId annotation used in the class.
        redisson - instance
        idFieldName - name of field
        Returns:
        resolved RId field value.