Package org.redisson.liveobject.resolver
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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 idcommandAsyncExecutor
- instance- Returns:
- resolved RId field value.
-
-