@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 ReleaseContentListener s 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 ReleaseContentListener s
whose elements will be notified when a release's contents are retrieved. |
getVersion, setVersion
getReleaseName, setReleaseName, validateReleaseName
createClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespace
getLog, getPluginContext, setLog, setPluginContext
public 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 AbstractReleaseMojo
releaseManagerCallable
- the Callable
that will
provide a ReleaseManager
; must not be null
Exception
- 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 ReleaseContentListener
sgetReleaseContentListenersList()
public List<ReleaseContentListener> getReleaseContentListenersList()
List
of ReleaseContentListener
s 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 ReleaseContentListener
s
whose elements will be notified when a release's contents are retrieved.releaseContentListeners
- the List
of ReleaseContentListener
s whose elements will be notified when a release's contents are retrieved; may be null
getReleaseContentListenersList()
,
addReleaseContentListener(ReleaseContentListener)
,
removeReleaseContentListener(ReleaseContentListener)
Copyright © 2017–2018, microBean. All rights reserved.