public final class SourceJavadocAttacher extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SourceJavadocAttacher.AttachmentListener
Listener notified by
SourceJavadocAttacher about a result
of attaching source (javadoc) to binary root. |
Modifier and Type | Method and Description |
---|---|
static void |
attachJavadoc(URL root,
Lookup context,
SourceJavadocAttacher.AttachmentListener listener)
Attaches a javadoc root provided by the SPI
SourceJavadocAttacherImplementation
to given binary root. |
static void |
attachJavadoc(URL root,
SourceJavadocAttacher.AttachmentListener listener)
Attaches a javadoc root provided by the SPI
SourceJavadocAttacherImplementation
to given binary root. |
static void |
attachSources(URL root,
Lookup context,
SourceJavadocAttacher.AttachmentListener listener)
Attaches a source root provided by the SPI
SourceJavadocAttacherImplementation
to given binary root. |
static void |
attachSources(URL root,
SourceJavadocAttacher.AttachmentListener listener)
Attaches a source root provided by the SPI
SourceJavadocAttacherImplementation
to given binary root. |
public static void attachSources(@NonNull URL root, @NullAllowed SourceJavadocAttacher.AttachmentListener listener)
SourceJavadocAttacherImplementation
to given binary root.root
- the binary root to attach sources tolistener
- notified about result when attaching is donepublic static void attachSources(@NonNull URL root, @NonNull Lookup context, @NullAllowed SourceJavadocAttacher.AttachmentListener listener)
SourceJavadocAttacherImplementation
to given binary root. If `context is given, it is used for 2 purposes:
SourceJavadocAttacherImplementation
s)
SourceJavadocAttacherImplementation
s
If a SourceJavadocAttacherImplementation
fails, the next one willing to handle
the URL is tried. Final result is reported through the SourceJavadocAttacher.AttachmentListener
.
root
- the binary root to attach sources tolistener
- notified about result when attaching is donecontext
- additional context for the operation: may contain project, or additional info
consumed by SPI implementors.public static void attachJavadoc(@NonNull URL root, @NullAllowed SourceJavadocAttacher.AttachmentListener listener)
SourceJavadocAttacherImplementation
to given binary root.root
- the binary root to attach javadoc tolistener
- notified about result when attaching is donepublic static void attachJavadoc(@NonNull URL root, @NonNull Lookup context, @NullAllowed SourceJavadocAttacher.AttachmentListener listener)
SourceJavadocAttacherImplementation
to given binary root. If `context is given, it is used for 2 purposes:
SourceJavadocAttacherImplementation
s)
SourceJavadocAttacherImplementation
s
If a SourceJavadocAttacherImplementation
fails, the next one willing to handle
the URL is tried. Final result is reported through the SourceJavadocAttacher.AttachmentListener
.
root
- the binary root to attach sources tolistener
- notified about result when attaching is donecontext
- additional context for the operation: may contain project, or additional info
consumed by SPI implementors.