Class DefaultMessages
- java.lang.Object
-
- org.codehaus.plexus.build.messages.DefaultMessages
-
- All Implemented Interfaces:
Messages
@Named("default") @Singleton public class DefaultMessages extends java.lang.Object implements MessagesDefault implementation of the Messages interface.This implementation delegates to the BuildContext for compatibility with existing message handling infrastructure. It logs messages and calls the legacy BuildContext message API.
-
-
Constructor Summary
Constructors Constructor Description DefaultMessages(BuildContext buildContext)Creates a new DefaultMessages instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBuilderbuild(MessageType type, java.nio.file.Path path)Creates a builder for a message of a specific type.voidclear(java.nio.file.Path path)Clears messages associated with a specific path.voidclearAll()Clears all messages.MessageBuildererror(java.nio.file.Path path)Creates a builder for an error message.MessageBuilderinfo(java.nio.file.Path path)Creates a builder for an informational message.MessageBuilderwarning(java.nio.file.Path path)Creates a builder for a warning message.
-
-
-
Constructor Detail
-
DefaultMessages
@Inject public DefaultMessages(BuildContext buildContext)
Creates a new DefaultMessages instance.- Parameters:
buildContext- the BuildContext to which messages will be delegated
-
-
Method Detail
-
clearAll
public void clearAll()
Description copied from interface:MessagesClears all messages. This removes all messages that were previously created through this API.
-
clear
public void clear(java.nio.file.Path path)
Description copied from interface:MessagesClears messages associated with a specific path.
-
error
public MessageBuilder error(java.nio.file.Path path)
Description copied from interface:MessagesCreates a builder for an error message.
-
warning
public MessageBuilder warning(java.nio.file.Path path)
Description copied from interface:MessagesCreates a builder for a warning message.
-
info
public MessageBuilder info(java.nio.file.Path path)
Description copied from interface:MessagesCreates a builder for an informational message.
-
build
public MessageBuilder build(MessageType type, java.nio.file.Path path)
Description copied from interface:MessagesCreates a builder for a message of a specific type. This is the generic method that the other build methods delegate to.
-
-