public static interface JarBuilder.Listener
| Modifier and Type | Field and Description |
|---|---|
static JarBuilder.Listener |
NOOP
A listener that ignores all events.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onConcat(String name,
Iterable<? extends JarBuilder.Entry> entries)
Called to notify the listener an original entry is being concatenated with one or more
subsequently added entries.
|
void |
onReplace(Iterable<? extends JarBuilder.Entry> originals,
JarBuilder.Entry replacement)
Called to notify the listener that original entries are being replaced by a subsequently
added entry.
|
void |
onSkip(Optional<? extends JarBuilder.Entry> original,
Iterable<? extends JarBuilder.Entry> skipped)
Called to notify the listener that entries are being skipped.
|
void |
onWrite(JarBuilder.Entry entry)
Called to notify the listener of a newly written non-duplicate entry.
|
static final JarBuilder.Listener NOOP
void onSkip(Optional<? extends JarBuilder.Entry> original, Iterable<? extends JarBuilder.Entry> skipped)
original - The original entry being retained.skipped - The new entries being skipped.void onReplace(Iterable<? extends JarBuilder.Entry> originals, JarBuilder.Entry replacement)
originals - The original entry candidates that will be replaced.replacement - The entry that overwrites the originals.void onConcat(String name, Iterable<? extends JarBuilder.Entry> entries)
name - The name of the entry in question.entries - The entries that will be concatenated with the original entry.void onWrite(JarBuilder.Entry entry)
entry - The entry to be added to the target jar.