public enum ObjectHolder extends Enum<ObjectHolder>
| Enum Constant and Description |
|---|
INSTANCE
singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getObject(Class<T> clasz) |
Object |
getObject(String objectKey) |
Object |
setObject(String objectKey,
Object object)
Sets object.
|
static ObjectHolder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectHolder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectHolder INSTANCE
public static ObjectHolder[] values()
for (ObjectHolder c : ObjectHolder.values()) System.out.println(c);
public static ObjectHolder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> T getObject(Class<T> clasz)
Copyright © 2023 Seata. All rights reserved.