public static enum EBean.Scope extends Enum<EBean.Scope>
| Enum Constant and Description |
|---|
Activity
A new instance of the bean is created the first time it is needed in an
Activity scope, it is then retained and the same instance is always returned
from within the same Activity.
|
Default
A new instance of the bean is created each time it is needed.
|
Fragment
A new instance of the bean is created the first time it is needed in a
Fragment scope, it is then retained and the same instance is always returned
from within the same Fragment.
|
Singleton
A new instance of the bean is created the first time it is needed, it is then
retained and the same instance is always returned.
|
| Modifier and Type | Method and Description |
|---|---|
static EBean.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EBean.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EBean.Scope Default
public static final EBean.Scope Activity
public static final EBean.Scope Fragment
public static final EBean.Scope Singleton
public static EBean.Scope[] values()
for (EBean.Scope c : EBean.Scope.values()) System.out.println(c);
public static EBean.Scope 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 © 2010–2020 simpligility technologies inc.. All rights reserved.