public interface ErrorCollector
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(ContainerException exception)
バリデーションエラーを追加する。 
 | 
void | 
ignore(java.lang.Class<? extends ContainerException> ignoreMe)
throwExceptionIfExistsError()で無視をする例外クラスを設定する。 | 
static ErrorCollector | 
newInstance()
実装クラスのインスタンスを生成する。 
 | 
void | 
throwExceptionIfExistsError()
追加されたバリデーションエラーがあれば、
 それらを 
ContainerCreationExceptionでラップしてスローする。 | 
static ErrorCollector | 
wrap(ContainerBuilder<?> containerBuilder)
DIコンテナのビルダーをラップしたインスタンスを返す。 
 | 
void add(ContainerException exception)
exception - バリデーションエラーvoid ignore(java.lang.Class<? extends ContainerException> ignoreMe)
throwExceptionIfExistsError()で無視をする例外クラスを設定する。ignoreMe - 無視される例外クラスvoid throwExceptionIfExistsError()
ContainerCreationExceptionでラップしてスローする。
 
 バリデーションエラーがなければ何もしない。
static ErrorCollector newInstance()
static ErrorCollector wrap(ContainerBuilder<?> containerBuilder)
containerBuilder - DIコンテナのビルダー