public class CallbackDescriptor extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
callbackMethods |
protected LifecycleEvent |
callbackType |
Constructor and Description |
---|
CallbackDescriptor(LifecycleEvent callbackType) |
Modifier and Type | Method and Description |
---|---|
void |
addCallbackMethod(String methodName) |
void |
clear()
Removes all callback methods.
|
Collection<String> |
getCallbackMethods()
Returns all callback methods for this callback event.
|
LifecycleEvent |
getCallbackType() |
boolean |
moveMethod(String callbackMethod,
int destinationIndex)
Moves specified callback method to the specified position
|
void |
removeCallbackMethod(String methodName) |
void |
setCallbackMethodAt(int index,
String method)
Replaces a callback method at the specified position
|
protected LifecycleEvent callbackType
public CallbackDescriptor(LifecycleEvent callbackType)
public void clear()
public Collection<String> getCallbackMethods()
public void addCallbackMethod(String methodName)
public void removeCallbackMethod(String methodName)
public LifecycleEvent getCallbackType()
public boolean moveMethod(String callbackMethod, int destinationIndex)
callbackMethod
- callbacm method name (should exist)destinationIndex
- destinationi index (should be valid)public void setCallbackMethodAt(int index, String method)
index
- callback method indexmethod
- new callback methodCopyright © 2001–2019 Apache Cayenne. All rights reserved.