|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.common.utility.model.listener.ReflectiveChangeListener
public abstract class ReflectiveChangeListener
This factory builds listeners that reflectively forward change events. If you are worried about having too many little classes that have to be loaded and maintained by the class loader, you can use one of these. Of course, this comes with the additional overhead of reflection.... Also note that the validity of the method name is not checked at compile time, but at runtime; although we do check the method as soon as the listener is instantiated.
Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Constructor Summary | |
|---|---|
protected |
ReflectiveChangeListener(Object target)
Construct a listener that will invoke the specified method on the specified target. |
| Method Summary | |
|---|---|
static CollectionChangeListener |
buildCollectionChangeListener(Object target,
Method method)
Construct a collection change listener that will invoke the specified method on the specified target for any change event. |
static CollectionChangeListener |
buildCollectionChangeListener(Object target,
Method addMethod,
Method removeMethod,
Method clearMethod,
Method changeMethod)
Construct a collection change listener that will invoke the specified methods on the specified target. |
static CollectionChangeListener |
buildCollectionChangeListener(Object target,
String methodName)
Construct a collection change listener that will invoke the specified method on the specified target for any change event. |
static CollectionChangeListener |
buildCollectionChangeListener(Object target,
String addMethodName,
String removeMethodName,
String clearMethodName,
String changeMethodName)
Construct a collection change listener that will invoke the specified methods on the specified target for change events. |
static ListChangeListener |
buildListChangeListener(Object target,
Method method)
Construct a list change listener that will invoke the specified method on the specified target for any change event. |
static ListChangeListener |
buildListChangeListener(Object target,
Method addMethod,
Method removeMethod,
Method replaceMethod,
Method moveMethod,
Method clearMethod,
Method changeMethod)
Construct a list change listener that will invoke the specified methods on the specified target. |
static ListChangeListener |
buildListChangeListener(Object target,
String methodName)
Construct a list change listener that will invoke the specified method on the specified target for any change event. |
static ListChangeListener |
buildListChangeListener(Object target,
String addMethodName,
String removeMethodName,
String replaceMethodName,
String moveMethodName,
String clearMethodName,
String changeMethodName)
Construct a list change listener that will invoke the specified methods on the specified target for change events. |
static PropertyChangeListener |
buildPropertyChangeListener(Object target,
Method method)
Construct a property change listener that will invoke the specified method on the specified target. |
static PropertyChangeListener |
buildPropertyChangeListener(Object target,
String methodName)
Construct a property change listener that will invoke the specified method on the specified target. |
static StateChangeListener |
buildStateChangeListener(Object target,
Method method)
Construct a state change listener that will invoke the specified method on the specified target. |
static StateChangeListener |
buildStateChangeListener(Object target,
String methodName)
Construct a state change listener that will invoke the specified method on the specified target. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Object target
protected static final Class<StateChangeEvent> STATE_CHANGE_EVENT_CLASS
protected static final Class<StateChangeEvent>[] STATE_CHANGE_EVENT_CLASS_ARRAY
protected static final Class<PropertyChangeEvent> PROPERTY_CHANGE_EVENT_CLASS
protected static final Class<PropertyChangeEvent>[] PROPERTY_CHANGE_EVENT_CLASS_ARRAY
protected static final Class<CollectionEvent> COLLECTION_EVENT_CLASS
protected static final Class<CollectionEvent>[] COLLECTION_EVENT_CLASS_ARRAY
protected static final Class<CollectionAddEvent> COLLECTION_ADD_EVENT_CLASS
protected static final Class<CollectionAddEvent>[] COLLECTION_ADD_EVENT_CLASS_ARRAY
protected static final Class<CollectionRemoveEvent> COLLECTION_REMOVE_EVENT_CLASS
protected static final Class<CollectionRemoveEvent>[] COLLECTION_REMOVE_EVENT_CLASS_ARRAY
protected static final Class<CollectionClearEvent> COLLECTION_CLEAR_EVENT_CLASS
protected static final Class<CollectionClearEvent>[] COLLECTION_CLEAR_EVENT_CLASS_ARRAY
protected static final Class<CollectionChangeEvent> COLLECTION_CHANGE_EVENT_CLASS
protected static final Class<CollectionChangeEvent>[] COLLECTION_CHANGE_EVENT_CLASS_ARRAY
protected static final Class<ListEvent> LIST_EVENT_CLASS
protected static final Class<ListEvent>[] LIST_EVENT_CLASS_ARRAY
protected static final Class<ListAddEvent> LIST_ADD_EVENT_CLASS
protected static final Class<ListAddEvent>[] LIST_ADD_EVENT_CLASS_ARRAY
protected static final Class<ListRemoveEvent> LIST_REMOVE_EVENT_CLASS
protected static final Class<ListRemoveEvent>[] LIST_REMOVE_EVENT_CLASS_ARRAY
protected static final Class<ListReplaceEvent> LIST_REPLACE_EVENT_CLASS
protected static final Class<ListReplaceEvent>[] LIST_REPLACE_EVENT_CLASS_ARRAY
protected static final Class<ListMoveEvent> LIST_MOVE_EVENT_CLASS
protected static final Class<ListMoveEvent>[] LIST_MOVE_EVENT_CLASS_ARRAY
protected static final Class<ListClearEvent> LIST_CLEAR_EVENT_CLASS
protected static final Class<ListClearEvent>[] LIST_CLEAR_EVENT_CLASS_ARRAY
protected static final Class<ListChangeEvent> LIST_CHANGE_EVENT_CLASS
protected static final Class<ListChangeEvent>[] LIST_CHANGE_EVENT_CLASS_ARRAY
| Constructor Detail |
|---|
protected ReflectiveChangeListener(Object target)
| Method Detail |
|---|
public static StateChangeListener buildStateChangeListener(Object target,
Method method)
public static StateChangeListener buildStateChangeListener(Object target,
String methodName)
public static PropertyChangeListener buildPropertyChangeListener(Object target,
Method method)
public static PropertyChangeListener buildPropertyChangeListener(Object target,
String methodName)
public static CollectionChangeListener buildCollectionChangeListener(Object target,
Method addMethod,
Method removeMethod,
Method clearMethod,
Method changeMethod)
public static CollectionChangeListener buildCollectionChangeListener(Object target,
Method method)
public static CollectionChangeListener buildCollectionChangeListener(Object target,
String addMethodName,
String removeMethodName,
String clearMethodName,
String changeMethodName)
public static CollectionChangeListener buildCollectionChangeListener(Object target,
String methodName)
public static ListChangeListener buildListChangeListener(Object target,
Method addMethod,
Method removeMethod,
Method replaceMethod,
Method moveMethod,
Method clearMethod,
Method changeMethod)
public static ListChangeListener buildListChangeListener(Object target,
Method method)
public static ListChangeListener buildListChangeListener(Object target,
String addMethodName,
String removeMethodName,
String replaceMethodName,
String moveMethodName,
String clearMethodName,
String changeMethodName)
public static ListChangeListener buildListChangeListener(Object target,
String methodName)
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||