Package io.bdeploy.jersey.ws.change
Class ObjectChangeRegistration
java.lang.Object
io.bdeploy.jersey.ws.change.ObjectChangeRegistration
Manages registrations for certain object change types and related
ObjectScopes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String type, ObjectScope scope) Add a matching scope for the given type.voidaddListener(Consumer<ObjectChangeRegistration> listener) getBestScoring(String type, ObjectScope scope) Calculates a match score, which determines "how much" the given scope matches.booleanmatches(String type, ObjectScope scope) Determines whether the givenObjectScopeis matched by any of the registeredObjectScopes.voidremove(String type, ObjectScope scope) Remove a matching scope for the given type.
-
Constructor Details
-
ObjectChangeRegistration
public ObjectChangeRegistration()
-
-
Method Details
-
add
Add a matching scope for the given type. -
remove
Remove a matching scope for the given type. -
matches
Determines whether the givenObjectScopeis matched by any of the registeredObjectScopes. -
getBestScoring
Calculates a match score, which determines "how much" the given scope matches. -
addListener
- Parameters:
listener- a listener to be notified on changes.
-