Package org.apache.maven.internal.impl
Class DefaultMessageBuilderFactory
java.lang.Object
org.apache.maven.internal.impl.DefaultMessageBuilderFactory
- All Implemented Interfaces:
Service
,MessageBuilderFactory
@Experimental
@Named
@Singleton
@Priority(-1)
public class DefaultMessageBuilderFactory
extends Object
implements MessageBuilderFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a new message builder.builder
(StringBuilder stringBuilder) Creates a new message builder backed by the given string builder.int
Returns the terminal width or-1
if not supported.boolean
Checks if the underlying output does support styling or not.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.services.MessageBuilderFactory
builder
-
Constructor Details
-
DefaultMessageBuilderFactory
@Inject public DefaultMessageBuilderFactory()
-
-
Method Details
-
isColorEnabled
public boolean isColorEnabled()Description copied from interface:MessageBuilderFactory
Checks if the underlying output does support styling or not.- Specified by:
isColorEnabled
in interfaceMessageBuilderFactory
- Returns:
- whether color styling is supported or not
-
getTerminalWidth
public int getTerminalWidth()Description copied from interface:MessageBuilderFactory
Returns the terminal width or-1
if not supported.- Specified by:
getTerminalWidth
in interfaceMessageBuilderFactory
- Returns:
- the terminal width
-
builder
Description copied from interface:MessageBuilderFactory
Creates a new message builder.- Specified by:
builder
in interfaceMessageBuilderFactory
- Returns:
- a new message builder
-
builder
Description copied from interface:MessageBuilderFactory
Creates a new message builder backed by the given string builder.- Specified by:
builder
in interfaceMessageBuilderFactory
- Parameters:
stringBuilder
- a string builder- Returns:
- a new message builder
-