public final class CallbackUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isOptional(Callback callback)
Determine whether a callback is optional.
|
static void |
unsupported(Callback callback)
A utility to handle a callback which is unsupported.
|
public static boolean isOptional(Callback callback)
callback
- the callbacktrue
if it is optional, false
if it is not optional or optionality could not be determinedpublic static void unsupported(Callback callback) throws UnsupportedCallbackException
callback
- the callback which is not supportedUnsupportedCallbackException
- if the callback is not optionalCopyright © 2020 JBoss by Red Hat. All rights reserved.