public class LifecycleMetaData extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
IGNORE_HIGH |
static int |
IGNORE_LOW |
static int |
IGNORE_NONE |
Modifier and Type | Method and Description |
---|---|
LifecycleCallbacks[] |
getCallbacks(int eventType)
Return all callbacks for the given event type, including superclass
callbacks if appropriate.
|
LifecycleCallbacks[] |
getDeclaredCallbacks(int eventType)
Return the declared callbacks for the given event type.
|
int |
getIgnoreSuperclassCallbacks()
Whether to exclude superclass callbacks from events.
|
boolean |
getIgnoreSystemListeners()
Whether to exclude system listeners from events.
|
LifecycleCallbacks[] |
getNonPCSuperclassCallbacks(int eventType)
Return the callbacks for the non-PC superclass.
|
boolean |
is_activated()
Whether the LifeCycleMetaData has had any callbacks or listeners registered.
|
void |
setDeclaredCallbacks(int eventType,
LifecycleCallbacks[] callbacks,
int highPriority)
Set the callbacks for the given event type.
|
void |
setIgnoreSuperclassCallbacks(int ignore)
Whether to exclude superclass callbacks from events.
|
void |
setIgnoreSystemListeners(boolean ignore)
Whether to exclude system listeners from events.
|
void |
setNonPCSuperclassCallbacks(int eventType,
LifecycleCallbacks[] callbacks,
int highPriority)
Set the callbacks for the given event type for non-persistent
superclass.
|
public static final int IGNORE_NONE
public static final int IGNORE_HIGH
public static final int IGNORE_LOW
public boolean is_activated()
public boolean getIgnoreSystemListeners()
public void setIgnoreSystemListeners(boolean ignore)
public int getIgnoreSuperclassCallbacks()
public void setIgnoreSuperclassCallbacks(int ignore)
public LifecycleCallbacks[] getDeclaredCallbacks(int eventType)
public LifecycleCallbacks[] getCallbacks(int eventType)
public void setDeclaredCallbacks(int eventType, LifecycleCallbacks[] callbacks, int highPriority)
highPriority
- the first N given callbacks are high priority;
high priority callbacks will be returned before
non-high-priority superclass callbackspublic LifecycleCallbacks[] getNonPCSuperclassCallbacks(int eventType)
public void setNonPCSuperclassCallbacks(int eventType, LifecycleCallbacks[] callbacks, int highPriority)
highPriority
- the first N given callbacks are high priority;
high priority callbacks will be returned before
non-high-priority superclass callbacksCopyright © 2006–2017 Apache Software Foundation. All rights reserved.