|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.util.TypeProblemMessageBean.Builder
public static final class TypeProblemMessageBean.Builder
Creates instances of TypeProblemMessageBean
.
Constructor Summary | |
---|---|
TypeProblemMessageBean.Builder() |
Method Summary | |
---|---|
TypeProblemMessageBean |
build() Creates the instance. |
boolean |
hasReportedProblems() Checks if duplicates or errors have been reported. |
String |
toMessage() Creates the message. |
TypeProblemMessageBean.Builder |
with(Class<?> type) Sets the type that is the cause of the problem. |
TypeProblemMessageBean.Builder |
withDuplicate(String duplicate) Adds the given duplicate implementation to the list. |
TypeProblemMessageBean.Builder |
withError(String error) Adds the given error message to the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeProblemMessageBean.Builder()
Method Detail |
---|
public TypeProblemMessageBean.Builder with(Class<?> type)
type
- the type that is the cause of the problem.
public TypeProblemMessageBean.Builder withDuplicate(String duplicate)
duplicate
- the name of the implementation that implements the given type.
public TypeProblemMessageBean.Builder withError(String error)
error
- the error message for detailed information on problems while instantiating a service type.
public TypeProblemMessageBean build()
public String toMessage()
public boolean hasReportedProblems()
false
if neither duplicates or errors have been reported,
true
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |