public class HandlerRegistrations
extends java.lang.Object
handler registrations.| Modifier and Type | Method and Description | 
|---|---|
| static HandlerRegistration | compose(HandlerRegistration... handlers)Create and return a  HandlerRegistrationthat will callHandlerRegistration.removeHandler()on all supplied handlers ifHandlerRegistration.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 HandlerRegistrationHandlerRegistration