Interface RIdResolver<V>

Type Parameters:
V - Value type
All Known Implementing Classes:
LongGenerator, RequiredIdResolver, UUIDGenerator

public interface RIdResolver<V>
Author:
Rui Gu (https://github.com/jackygurui)
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(Class<?> cls, RId annotation, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
    RLiveObjectService instantiate the class and invokes this method to get a value used as the value for the field with RId annotation.
  • Method Details

    • resolve

      V resolve(Class<?> cls, RId annotation, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
      RLiveObjectService instantiate the class and invokes this method to get a value used as the value for the field with RId annotation.
      Parameters:
      cls - the class of the LiveObject.
      annotation - the RId annotation used in the class.
      idFieldName - field id
      commandAsyncExecutor - instance
      Returns:
      resolved RId field value.