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
-
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 of the specified size.- Specified by:
builder
in interfaceMessageBuilderFactory
- Parameters:
size
- the initial size of the message builder buffer- Returns:
- a new message builder
-