@Mojo(name="content") public class GetReleaseContentMojo extends AbstractSingleVersionedReleaseMojo
| Constructor and Description |
|---|
GetReleaseContentMojo()
Creates a new
GetReleaseContentMojo. |
| Modifier and Type | Method and Description |
|---|---|
void |
addReleaseContentListener(ReleaseContentListener listener)
Adds a
ReleaseContentListener that will be notified when a release's content is retrieved. |
protected void |
execute(Callable<ReleaseManager> releaseManagerCallable)
|
ReleaseContentListener[] |
getReleaseContentListeners()
Invokes the
getReleaseContentListenersList() method and
converts its return
value to an array. |
List<ReleaseContentListener> |
getReleaseContentListenersList()
Returns the
List of ReleaseContentListeners whose
elements will be notified when the tests complete. |
void |
removeReleaseContentListener(ReleaseContentListener listener)
Removes a
ReleaseContentListener from this TestReleaseMojo. |
void |
setReleaseContentListenersList(List<ReleaseContentListener> releaseContentListeners)
Installs the
List of ReleaseContentListeners
whose elements will be notified when a release's contents are retrieved. |
getVersion, setVersiongetReleaseName, setReleaseName, validateReleaseNamecreateClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespacegetLog, getPluginContext, setLog, setPluginContextpublic GetReleaseContentMojo()
GetReleaseContentMojo.protected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable.
This implementation retrieves the content of a particular version of a single release and notifies registers listeners.
execute in class AbstractReleaseMojoreleaseManagerCallable - the Callable that will
provide a ReleaseManager; must not be nullException - if an error occurspublic void addReleaseContentListener(ReleaseContentListener listener)
ReleaseContentListener that will be notified when a release's content is retrieved.listener - the ReleaseContentListener to add; may be
null in which case no action will be takenremoveReleaseContentListener(ReleaseContentListener),
getReleaseContentListenersList()public void removeReleaseContentListener(ReleaseContentListener listener)
ReleaseContentListener from this TestReleaseMojo.listener - the ReleaseContentListener to remove; may be
null in which case no action will be takenaddReleaseContentListener(ReleaseContentListener),
getReleaseContentListenersList()public ReleaseContentListener[] getReleaseContentListeners()
getReleaseContentListenersList() method and
converts its return
value to an array.
This method never returns null.
Overrides of this method must not return null.
null array of ReleaseContentListenersgetReleaseContentListenersList()public List<ReleaseContentListener> getReleaseContentListenersList()
List of ReleaseContentListeners whose
elements will be notified when the tests complete.
This method may return null.
Overrides of this method are permitted to return null.
public void setReleaseContentListenersList(List<ReleaseContentListener> releaseContentListeners)
List of ReleaseContentListeners
whose elements will be notified when a release's contents are retrieved.releaseContentListeners - the List of ReleaseContentListeners whose elements will be notified when a release's contents are retrieved; may be nullgetReleaseContentListenersList(),
addReleaseContentListener(ReleaseContentListener),
removeReleaseContentListener(ReleaseContentListener)Copyright © 2017–2018, microBean. All rights reserved.