Name

Callback

Synopsis

This interface defines no methods but serves as a “marker interface” to identify the type of objects that can be passed to the handle( ) method of a CallbackHandler. All of the classes in this package, with the exception of UnsupportedCallbackException implement this interface.

public interface Callback {
}

Implementations

ChoiceCallback, ConfirmationCallback, LanguageCallback, NameCallback, PasswordCallback, TextInputCallback, TextOutputCallback

Passed To

CallbackHandler.handle( ), UnsupportedCallbackException.UnsupportedCallbackException( )

Returned By

UnsupportedCallbackException.getCallback( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.