Package org.apache.maven.model
Class Notifier
java.lang.Object
org.apache.maven.model.Notifier
- All Implemented Interfaces:
Serializable
Configures one method for notifying users/developers when a
build breaks.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Deprecated.private Properties
Field configuration.private boolean
Whether to send notifications on error.private boolean
Whether to send notifications on failure.private boolean
Whether to send notifications on success.private boolean
Whether to send notifications on warning.private String
The mechanism used to deliver notifications. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguration
(String key, String value) Method addConfiguration.Get Deprecated.Method getConfiguration.getType()
Get the mechanism used to deliver notifications.boolean
Get whether to send notifications on error.boolean
Get whether to send notifications on failure.boolean
Get whether to send notifications on success.boolean
Get whether to send notifications on warning.void
setAddress
(String address) Set Deprecated.void
setConfiguration
(Properties configuration) Set extended configuration specific to this notifier goes here.void
setSendOnError
(boolean sendOnError) Set whether to send notifications on error.void
setSendOnFailure
(boolean sendOnFailure) Set whether to send notifications on failure.void
setSendOnSuccess
(boolean sendOnSuccess) Set whether to send notifications on success.void
setSendOnWarning
(boolean sendOnWarning) Set whether to send notifications on warning.void
Set the mechanism used to deliver notifications.
-
Field Details
-
type
The mechanism used to deliver notifications. -
sendOnError
private boolean sendOnErrorWhether to send notifications on error. -
sendOnFailure
private boolean sendOnFailureWhether to send notifications on failure. -
sendOnSuccess
private boolean sendOnSuccessWhether to send notifications on success. -
sendOnWarning
private boolean sendOnWarningWhether to send notifications on warning. -
address
Deprecated. Where to send the notification to - eg email address. -
configuration
Field configuration.
-
-
Constructor Details
-
Notifier
public Notifier()
-
-
Method Details
-
addConfiguration
Method addConfiguration.- Parameters:
key
-value
-
-
getAddress
Get Deprecated. Where to send the notification to - eg email address.- Returns:
- String
-
getConfiguration
Method getConfiguration.- Returns:
- Properties
-
getType
Get the mechanism used to deliver notifications.- Returns:
- String
-
isSendOnError
public boolean isSendOnError()Get whether to send notifications on error.- Returns:
- boolean
-
isSendOnFailure
public boolean isSendOnFailure()Get whether to send notifications on failure.- Returns:
- boolean
-
isSendOnSuccess
public boolean isSendOnSuccess()Get whether to send notifications on success.- Returns:
- boolean
-
isSendOnWarning
public boolean isSendOnWarning()Get whether to send notifications on warning.- Returns:
- boolean
-
setAddress
Set Deprecated. Where to send the notification to - eg email address.- Parameters:
address
-
-
setConfiguration
Set extended configuration specific to this notifier goes here.- Parameters:
configuration
-
-
setSendOnError
public void setSendOnError(boolean sendOnError) Set whether to send notifications on error.- Parameters:
sendOnError
-
-
setSendOnFailure
public void setSendOnFailure(boolean sendOnFailure) Set whether to send notifications on failure.- Parameters:
sendOnFailure
-
-
setSendOnSuccess
public void setSendOnSuccess(boolean sendOnSuccess) Set whether to send notifications on success.- Parameters:
sendOnSuccess
-
-
setSendOnWarning
public void setSendOnWarning(boolean sendOnWarning) Set whether to send notifications on warning.- Parameters:
sendOnWarning
-
-
setType
Set the mechanism used to deliver notifications.- Parameters:
type
-
-