Package io.permazen.change
Class FieldChange<T>
java.lang.Object
io.permazen.change.Change<T>
io.permazen.change.FieldChange<T>
- Type Parameters:
T
- the type of the object containing the changed field
- Direct Known Subclasses:
ListFieldChange
,MapFieldChange
,SetFieldChange
,SimpleFieldChange
Notification object that gets passed to
@OnChange
-annotated methods when a field changes.
Note that it's possible, using the core API, to change a field without first updating the containing object's schema.
As older schemas may have different fields than the schema associated with a particular
Permazen
instance, it's therefore possible to receive change notifications about changes to fields
not present in the current schema. This will not happen unless the lower level core API is used directly, FieldChange
events are being generated manually, etc.
-
Constructor Details
-
FieldChange
Constructor.- Parameters:
jobj
- Java object containing the field that changedfieldName
- the name of the field that changed- Throws:
IllegalArgumentException
- ifjobj
orfieldName
is null
-
-
Method Details