Package org.redisson.liveobject.resolver
Class RequiredIdResolver
- java.lang.Object
-
- org.redisson.liveobject.resolver.RequiredIdResolver
-
-
Field Summary
Fields Modifier and Type Field Description static RequiredIdResolver
INSTANCE
-
Constructor Summary
Constructors Constructor Description RequiredIdResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
resolve(Class cls, RId 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.
-
-
-
Field Detail
-
INSTANCE
public static final RequiredIdResolver INSTANCE
-
-
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 interfaceResolver<Class<?>,RId,Object>
- Specified by:
resolve
in interfaceRIdResolver<RId,Object>
- Parameters:
cls
- the class of the LiveObject.annotation
- the RId annotation used in the class.idFieldName
- name of fieldredisson
- instance- Returns:
- resolved RId field value.
-
-