Class DefaultMessageBuilderFactory
- java.lang.Object
-
- org.apache.maven.message.internal.DefaultMessageBuilderFactory
-
- All Implemented Interfaces:
MessageBuilderFactory
@Named @Singleton @Priority(-1) public class DefaultMessageBuilderFactory extends java.lang.Object implements MessageBuilderFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageBuilderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBuilderbuilder()Creates a new message builder.MessageBuilderbuilder(int size)Creates a new message builder of the specified size.intgetTerminalWidth()Returns the terminal width or-1if not supported.booleanisColorEnabled()Checks if the underlying output does support styling or not.
-
-
-
Method Detail
-
isColorEnabled
public boolean isColorEnabled()
Description copied from interface:MessageBuilderFactoryChecks if the underlying output does support styling or not.- Specified by:
isColorEnabledin interfaceMessageBuilderFactory- Returns:
- whether color styling is supported or not
-
getTerminalWidth
public int getTerminalWidth()
Description copied from interface:MessageBuilderFactoryReturns the terminal width or-1if not supported.- Specified by:
getTerminalWidthin interfaceMessageBuilderFactory- Returns:
- the terminal width
-
builder
public MessageBuilder builder()
Description copied from interface:MessageBuilderFactoryCreates a new message builder.- Specified by:
builderin interfaceMessageBuilderFactory- Returns:
- a new message builder
-
builder
public MessageBuilder builder(int size)
Description copied from interface:MessageBuilderFactoryCreates a new message builder of the specified size.- Specified by:
builderin interfaceMessageBuilderFactory- Parameters:
size- the initial size of the message builder buffer- Returns:
- a new message builder
-
-