public interface ILoadPolicy
ILoadable interface, but not always. A load policy
specifies what happens when the object is instantiated or initialized.
Load policies are implemented as bit flags rather than enum objects (or
something else) so as to allow policies to indicate a number of possible
permitted loading behaviors.| Modifier and Type | Field and Description |
|---|---|
static int |
BACKGROUND_LOAD
Loading behavior where the object loads itself in the background when
instantiated, initialized, or opened.
|
static int |
IMMEDIATE_LOAD
Loading behavior where the object loads itself when instantiated,
initialized, or opened, blocking the method.
|
static int |
NO_LOAD
Loading behavior where the object does not load itself when instantiated,
initialized, or opened.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoadPolicy()
Returns the load policy for this object, expressed as an integer.
|
void |
setLoadPolicy(int policy)
Sets the load policy for this object.
|
static final int NO_LOAD
ILoadable.load(boolean) method, if the object
supports it). Value is 1 << 1.static final int BACKGROUND_LOAD
static final int IMMEDIATE_LOAD
void setLoadPolicy(int policy)
policy - the policy to implement; may be one of NO_LOAD,
BACKGROUND_LOAD, IMMEDIATE_LOAD or
an implementation-dependent value.int getLoadPolicy()
Copyright © 2018. All rights reserved.