@Mojo(name="status") public class GetReleaseStatusMojo extends AbstractSingleVersionedReleaseMojo
Constructor and Description |
---|
GetReleaseStatusMojo()
Creates a new
GetReleaseStatusMojo . |
Modifier and Type | Method and Description |
---|---|
void |
addReleaseStatusListener(ReleaseStatusListener listener)
Adds a
ReleaseStatusListener that will be notified when a release version's status is retrieved |
protected void |
execute(Callable<ReleaseManager> releaseManagerCallable)
|
ReleaseStatusListener[] |
getReleaseStatusListeners()
Invokes the
getReleaseStatusListenersList() method and
converts its return
value to an array. |
List<ReleaseStatusListener> |
getReleaseStatusListenersList()
Returns the
List of ReleaseStatusListener s whose
elements will be notified when a release version's status is retrieved. |
void |
removeReleaseStatusListener(ReleaseStatusListener listener)
Removes a
ReleaseStatusListener from this GetReleaseStatusMojo . |
void |
setReleaseStatusListenersList(List<ReleaseStatusListener> releaseStatusListeners)
Installs the
List of ReleaseStatusListener s whose
elements will be notified when a release version's status is 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 GetReleaseStatusMojo()
GetReleaseStatusMojo
.protected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable
.
This implementation retrieves the status for a given release at a particular version and notifies registered ReleaseStatusListener
s.
execute
in class AbstractReleaseMojo
releaseManagerCallable
- the Callable
that will
provide a ReleaseManager
; must not be null
Exception
- if an error occurspublic void addReleaseStatusListener(ReleaseStatusListener listener)
ReleaseStatusListener
that will be notified when a release version's status is retrievedlistener
- the ReleaseStatusListener
to add; may be
null
in which case no action will be takenremoveReleaseStatusListener(ReleaseStatusListener)
,
getReleaseStatusListenersList()
public void removeReleaseStatusListener(ReleaseStatusListener listener)
ReleaseStatusListener
from this GetReleaseStatusMojo
.listener
- the ReleaseStatusListener
to remove; may
be null
in which case no action will be takenaddReleaseStatusListener(ReleaseStatusListener)
,
getReleaseStatusListenersList()
public ReleaseStatusListener[] getReleaseStatusListeners()
getReleaseStatusListenersList()
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 ReleaseStatusListener
sgetReleaseStatusListenersList()
public List<ReleaseStatusListener> getReleaseStatusListenersList()
List
of ReleaseStatusListener
s whose
elements will be notified when a release version's status is retrieved.
This method may return null
.
Overrides of this method are permitted to return null
.
List
of ReleaseStatusListener
s, or
null
setReleaseStatusListenersList(List)
,
addReleaseStatusListener(ReleaseStatusListener)
,
removeReleaseStatusListener(ReleaseStatusListener)
public void setReleaseStatusListenersList(List<ReleaseStatusListener> releaseStatusListeners)
List
of ReleaseStatusListener
s whose
elements will be notified when a release version's status is retrieved.releaseStatusListeners
- the List
of ReleaseStatusListener
s whose elements will be notified when a release status is retrieved; may be null
getReleaseStatusListenersList()
,
addReleaseStatusListener(ReleaseStatusListener)
,
removeReleaseStatusListener(ReleaseStatusListener)
Copyright © 2017–2018, microBean. All rights reserved.