public class PrefixGenerator extends Object
init(Supplier) singleton manually| Modifier | Constructor and Description |
|---|---|
protected |
PrefixGenerator(IPrefixFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
static IPrefixFactory |
get() |
static Class<? extends Storable> |
getClassByPrefix(Object prefix) |
static Object |
getPrefix(Class<? extends Storable> clazz) |
static Object |
getPrefix(Storable object) |
static void |
init(IPrefixFactory instance) |
static void |
init(com.google.common.base.Supplier<IPrefixFactory> instance)
TODO: Add JavaDoc.
|
static Object |
removePrefix(Object id) |
@Inject
protected PrefixGenerator(@Named(value="prefixFactory")
IPrefixFactory factory)
public static IPrefixFactory get()
public static void init(com.google.common.base.Supplier<IPrefixFactory> instance)
public static void init(IPrefixFactory instance)
Copyright © 2025. All rights reserved.