public interface ExtendableObject
Modifier and Type | Interface and Description |
---|---|
static class |
ExtendableObject.Extensions
Helper class for implementors of
ExtendableObject . |
Modifier and Type | Method and Description |
---|---|
<E> E |
addExtension(Class<? super E> type,
E extension)
Adds an extension to this component.
|
<E> E |
getExtension(Class<E> type)
Gets the registered extension for the specified type.
|
<E> E addExtension(Class<? super E> type, E extension)
type
- the type to register the extension forextension
- the extensionnull
getExtension(Class)
<E> E getExtension(Class<E> type)
type
- the type the extension was registered withnull
if none was added before for
this typeaddExtension(Class, Object)