Package org.redisson.liveobject.resolver
Class UUIDGenerator
- java.lang.Object
 - 
- org.redisson.liveobject.resolver.UUIDGenerator
 
 
- 
- All Implemented Interfaces:
 RIdResolver<String>
public class UUIDGenerator extends Object implements RIdResolver<String>
- Author:
 - Rui Gu (https://github.com/jackygurui)
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static UUIDGeneratorINSTANCE 
- 
Constructor Summary
Constructors Constructor Description UUIDGenerator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringresolve(Class<?> value, RId id, 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. 
 - 
 
- 
- 
Field Detail
- 
INSTANCE
public static final UUIDGenerator INSTANCE
 
 - 
 
- 
Method Detail
- 
resolve
public String resolve(Class<?> value, RId id, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
Description copied from interface:RIdResolverRLiveObjectService instantiate the class and invokes this method to get a value used as the value for the field with RId annotation.- Specified by:
 resolvein interfaceRIdResolver<String>- Parameters:
 value- the class of the LiveObject.id- the RId annotation used in the class.idFieldName- field idcommandAsyncExecutor- instance- Returns:
 - resolved RId field value.
 
 
 - 
 
 -