registerExtensionRegister the supplied
Extension, without checking if an extension of that type already exists.
Semantics for Source
If an extension is registered declaratively via
extensionshould be the same object. However, if an extension is registered programmatically via
sourceobject should be the
Fieldthat is annotated with
@RegisterExtension. Similarly, if an extension is registered programmatically as a lambda expression or method reference, the
sourceobject should be the underlying
Methodthat implements the extension API.
extension- the extension to register; never
source- the source of the extension; never