CollectionMethodEvent

Supported only by WrapperFactory , represents an interaction with a collection object itself.

API

CollectionMethodEvent.java
class CollectionMethodEvent {
  CollectionMethodEvent(Object source, Identifier collectionIdentifier, Object domainObject, String methodName, Object[] args, Object returnValue)
  Object getSource()     (1)
  Object getDomainObject()     (2)
  String getMethodName()     (3)
  Object[] getArgs()     (4)
  Object getReturnValue()     (5)
}
1 getSource()

The collection object (an instance of a List or a Set etc) that is the originator of this event.

2 getDomainObject()

The owner of the collection (an instance of Customer/tt> or `Order , say).`

3 getMethodName()

The name of the method invoked on this collection, for example isEmpty .

4 getArgs()

The arguments with which the collection’s #getMethodName() method was invoked.

5 getReturnValue()

The return value from the #getMethodName() method invocation.

Members

getSource()

The collection object (an instance of a List or a Set etc) that is the originator of this event.

The owning domain object is available using #getDomainObject() .

getDomainObject()

The owner of the collection (an instance of Customer/tt> or `Order , say).`

getMethodName()

The name of the method invoked on this collection, for example isEmpty .

getArgs()

The arguments with which the collection’s #getMethodName() method was invoked.

getReturnValue()

The return value from the #getMethodName() method invocation.