Class RequiredIdResolver

java.lang.Object
org.redisson.liveobject.resolver.RequiredIdResolver
All Implemented Interfaces:
RIdResolver<Object>

public class RequiredIdResolver extends Object implements RIdResolver<Object>
Author:
Nikita Koksharov
  • Field Details

  • Constructor Details

    • RequiredIdResolver

      public RequiredIdResolver()
  • Method Details

    • resolve

      public Object resolve(Class<?> cls, RId annotation, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
      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 RIdResolver<Object>
      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.