Modifier and Type | Field | Description |
---|---|---|
static RequiredIdResolver |
INSTANCE |
Constructor | Description |
---|---|
RequiredIdResolver() |
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.
|
public static final RequiredIdResolver INSTANCE
public Object resolve(Class cls, RId annotation, String idFieldName, RedissonClient redisson)
RIdResolver
resolve
in interface Resolver<Class<?>,RId,Object>
resolve
in interface RIdResolver<RId,Object>
cls
- the class of the LiveObject.annotation
- the RId annotation used in the class.idFieldName
- name of fieldredisson
- instanceCopyright © 2014–2018 The Redisson Project. All rights reserved.