de.smartics.properties.resource.util
Class TypeProblemMessageBean.Builder

Package class diagram package TypeProblemMessageBean.Builder
java.lang.Object
  extended by de.smartics.properties.resource.util.TypeProblemMessageBean.Builder
Enclosing class:
TypeProblemMessageBean

public static final class TypeProblemMessageBean.Builder
     
     
extends Object

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

TypeProblemMessageBean.Builder

public TypeProblemMessageBean.Builder()
Method Detail

with

public TypeProblemMessageBean.Builder with(Class<?> type)
Sets the type that is the cause of the problem.

Parameters:
type - the type that is the cause of the problem.
Returns:
a reference to the builder.

withDuplicate

public TypeProblemMessageBean.Builder withDuplicate(String duplicate)
Adds the given duplicate implementation to the list.

Parameters:
duplicate - the name of the implementation that implements the given type.
Returns:
a reference to the builder.

withError

public TypeProblemMessageBean.Builder withError(String error)
Adds the given error message to the list.

Parameters:
error - the error message for detailed information on problems while instantiating a service type.
Returns:
a reference to the builder.

build

public TypeProblemMessageBean build()
Creates the instance.

Returns:
the created instance.

toMessage

public String toMessage()
Creates the message.

Returns:
the created message.

hasReportedProblems

public boolean hasReportedProblems()
Checks if duplicates or errors have been reported.

Returns:
false if neither duplicates or errors have been reported, true otherwise.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.