1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.internal.impl;
20
21 import org.apache.maven.api.annotations.Experimental;
22 import org.apache.maven.api.annotations.Nonnull;
23 import org.apache.maven.api.services.MessageBuilder;
24
25 @Experimental
26 public class DefaultMessageBuilder implements MessageBuilder {
27 private final @Nonnull org.apache.maven.shared.utils.logging.MessageBuilder delegate;
28
29 public DefaultMessageBuilder(@Nonnull org.apache.maven.shared.utils.logging.MessageBuilder delegate) {
30 this.delegate = delegate;
31 }
32
33 @Override
34 @Nonnull
35 public MessageBuilder success(Object o) {
36 delegate.success(o);
37 return this;
38 }
39
40 @Override
41 @Nonnull
42 public MessageBuilder warning(Object o) {
43 delegate.warning(o);
44 return this;
45 }
46
47 @Override
48 @Nonnull
49 public MessageBuilder failure(Object o) {
50 delegate.failure(o);
51 return this;
52 }
53
54 @Override
55 @Nonnull
56 public MessageBuilder strong(Object o) {
57 delegate.strong(o);
58 return this;
59 }
60
61 @Override
62 @Nonnull
63 public MessageBuilder mojo(Object o) {
64 delegate.mojo(o);
65 return this;
66 }
67
68 @Override
69 @Nonnull
70 public MessageBuilder project(Object o) {
71 delegate.project(o);
72 return this;
73 }
74
75 @Override
76 @Nonnull
77 public MessageBuilder a(char[] chars, int i, int i1) {
78 delegate.a(chars, i, i1);
79 return this;
80 }
81
82 @Override
83 @Nonnull
84 public MessageBuilder a(char[] chars) {
85 delegate.a(chars);
86 return this;
87 }
88
89 @Override
90 @Nonnull
91 public MessageBuilder a(CharSequence charSequence, int i, int i1) {
92 delegate.a(charSequence, i, i1);
93 return this;
94 }
95
96 @Override
97 @Nonnull
98 public MessageBuilder a(CharSequence charSequence) {
99 delegate.a(charSequence);
100 return this;
101 }
102
103 @Override
104 @Nonnull
105 public MessageBuilder a(Object o) {
106 delegate.a(o);
107 return this;
108 }
109
110 @Override
111 @Nonnull
112 public MessageBuilder newline() {
113 delegate.newline();
114 return this;
115 }
116
117 @Override
118 @Nonnull
119 public MessageBuilder format(String s, Object... objects) {
120 delegate.format(s, objects);
121 return this;
122 }
123
124 @Override
125 @Nonnull
126 public String build() {
127 return delegate.toString();
128 }
129 }