public class RequiredIdResolver extends Object implements RIdResolver<Object>
| Modifier and Type | Field and Description |
|---|---|
static RequiredIdResolver |
INSTANCE |
| Constructor and Description |
|---|
RequiredIdResolver() |
| Modifier and Type | Method and Description |
|---|---|
Object |
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.
|
public static final RequiredIdResolver INSTANCE
public Object resolve(Class<?> cls, RId annotation, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
RIdResolverresolve in interface RIdResolver<Object>cls - the class of the LiveObject.annotation - the RId annotation used in the class.idFieldName - field idcommandAsyncExecutor - instanceCopyright © 2014–2020 Redisson. All rights reserved.