T
- The extendableE
- The extensionB
- The extensionBuilderpublic interface ExtensionAdderProvider<T extends Extendable<T>,E extends Extension<T>,B extends ExtensionAdder<T,E>>
ServiceLoader
. It will
provide an ExtensionAdder
to add an extension to an extendable.
getImplementationName()
is used to find providers corresponding to the
implementation of the Extendable
. getAdderClass()
is used to
specify the adder class.Modifier and Type | Method and Description |
---|---|
Class<? super B> |
getAdderClass()
Returns the builder class provided by this Provider.
|
String |
getImplementationName()
Returns a name that is used to select this provider when searching for
implementations of extension builders in
Extendable.newExtension(java.lang.Class<B>) . |
B |
newAdder(T extendable)
returns an new empty ExtensionAdder for this extendable.
|
String getImplementationName()
Extendable.newExtension(java.lang.Class<B>)
.Class<? super B> getAdderClass()
Copyright © 2020. All rights reserved.