E - the type of registered ExtensionPoint@API(value=Internal)
public class RegisteredExtensionPoint<E extends org.junit.gen5.api.extension.ExtensionPoint>
extends java.lang.Object
ExtensionPoint registered in an ExtensionRegistry.| Constructor and Description |
|---|
RegisteredExtensionPoint(E extensionPoint,
java.lang.Object source,
org.junit.gen5.api.extension.ExtensionPointRegistry.Position position)
Construct a new
RegisteredExtensionPoint from the supplied
extension point, source, and position. |
| Modifier and Type | Method and Description |
|---|---|
E |
getExtensionPoint()
Get the physical implementation of the registered
ExtensionPoint. |
org.junit.gen5.api.extension.ExtensionPointRegistry.Position |
getPosition()
Get the position in which the
ExtensionPoint
is registered. |
java.lang.Object |
getSource()
Get the source of the registered
ExtensionPoint. |
java.lang.String |
toString() |
public RegisteredExtensionPoint(E extensionPoint, java.lang.Object source, org.junit.gen5.api.extension.ExtensionPointRegistry.Position position)
RegisteredExtensionPoint from the supplied
extension point, source, and position.
See getSource() for an explanation of the semantics for
the source.
extensionPoint - the physical ExtensionPoint which is registered;
never nullsource - the source of the extension point; used solely for
error reporting and logging; never nullposition - the position in which the extension point is registered;
never nullpublic E getExtensionPoint()
ExtensionPoint.public java.lang.Object getSource()
ExtensionPoint.
The source is used solely for error reporting and logging.
If an extension point is registered declaratively via
@ExtendWith,
getExtensionPoint() and this method will return the same
object. However, if an extension point is registered programmatically
— for example, as a lambda expression or method reference by
an ExtensionRegistrar
or by the framework via the ExtensionRegistry —
the source object may be the ExtensionRegistrar that
registered the extension point, the underlying
Method that implements the extension point
API, or similar.
public org.junit.gen5.api.extension.ExtensionPointRegistry.Position getPosition()
ExtensionPoint
is registered.public java.lang.String toString()
toString in class java.lang.Object