public enum CachePolicy extends Enum<CachePolicy>
Enum Constant and Description |
---|
MEMOIZE
Do not create more instances than necessary, one instance per node in the
dependency graph.
|
NEW_INSTANCE
Injectors must create new instances at every request if possible,
effectively no caching.
|
NO_PREFERENCE
Either MEMOIZE or NEW_INSTANCE may be used.
|
Modifier and Type | Method and Description |
---|---|
static CachePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachePolicy NO_PREFERENCE
public static final CachePolicy MEMOIZE
public static final CachePolicy NEW_INSTANCE
public static CachePolicy[] values()
for (CachePolicy c : CachePolicy.values()) System.out.println(c);
public static CachePolicy 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 nullCopyright © 2016 GroupLens Research. All rights reserved.