You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIRC, in Lyo 2.2.0 we removed the abstract modifier from the ChangeEvent class due to shortcomings in the JenaModelHelper at the time.
I have 3 thoughts:
We should make it abstract again.
We should create a superclass over Creation and Modification events, for example, a CreationOrModificationEvent. The reason for this is that the TRS 3.0 spec changes the semantics to strip Creation and Modification events of any semantically meaningful distinction. The reason is that many apps in the field violate the existing semantics and we shall codify it. I was against it but it got into the spec text anyway. This way, app developers would be able to check if a resource is an instance of CreationOrModificationEvent, which is in line with the spec text (i.e., you cannot check further for the instance of a Creation event because it may a modification labelled as a creation or vice versa).
Make use of the JDK 17 sealed feature and seal both the ChangeEvent class and the CreationOrModificationEvent.
The text was updated successfully, but these errors were encountered:
As I was experimenting with dynamic proxies in Java that only support interfaces, we also need to extract an interface from each of these classes as well (and bring along the annotations).
IIRC, in Lyo 2.2.0 we removed the
abstract
modifier from theChangeEvent
class due to shortcomings in theJenaModelHelper
at the time.I have 3 thoughts:
Creation
andModification
events, for example, aCreationOrModificationEvent
. The reason for this is that the TRS 3.0 spec changes the semantics to strip Creation and Modification events of any semantically meaningful distinction. The reason is that many apps in the field violate the existing semantics and we shall codify it. I was against it but it got into the spec text anyway. This way, app developers would be able to check if a resource is an instance ofCreationOrModificationEvent
, which is in line with the spec text (i.e., you cannot check further for the instance of aCreation
event because it may a modification labelled as a creation or vice versa).ChangeEvent
class and theCreationOrModificationEvent
.The text was updated successfully, but these errors were encountered: