public class HandlerRegistrations extends Object
handler registrations.| Modifier and Type | Method and Description |
|---|---|
static HandlerRegistration |
compose(HandlerRegistration... handlers)
Create and return a
HandlerRegistration that will call HandlerRegistration.removeHandler() on all supplied handlers if HandlerRegistration.removeHandler() is called on the returned object. |
public static HandlerRegistration compose(HandlerRegistration... handlers)
HandlerRegistration that will call HandlerRegistration.removeHandler() on all supplied handlers if HandlerRegistration.removeHandler() is called on the returned object.
A simple example:
HandlerRegistration hr1 = ... HandlerRegistration hr2 = ... return HandlerRegistrations.compose(hr1, hr2);
handlers - the handler registrations that should be composed
into a single HandlerRegistrationHandlerRegistrationCopyright © 2020. All rights reserved.