Class RequiredIdResolver

    • Constructor Detail

      • RequiredIdResolver

        public RequiredIdResolver()
    • Method Detail

      • resolve

        public Object resolve​(Class cls,
                              RId annotation,
                              String idFieldName,
                              RedissonClient redisson)
        Description copied from interface: RIdResolver
        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<?>,​RId,​Object>
        Specified by:
        resolve in interface RIdResolver<RId,​Object>
        Parameters:
        cls - the class of the LiveObject.
        annotation - the RId annotation used in the class.
        idFieldName - name of field
        redisson - instance
        Returns:
        resolved RId field value.