public final class AnnotationComponentDefinitionFactory extends java.lang.Object implements ComponentDefinitionFactory
| Constructor and Description |
|---|
AnnotationComponentDefinitionFactory(MemberFactory memberFactory,
ScopeDecider scopeDecider)
インスタンスを生成する。
|
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.Optional<ComponentDefinition<T>> |
fromComponentClass(java.lang.Class<T> componentType,
ErrorCollector errorCollector)
コンポーネントのクラスをもとにコンポーネント定義を生成する。
|
public AnnotationComponentDefinitionFactory(MemberFactory memberFactory, ScopeDecider scopeDecider)
memberFactory - コンポーネント定義の構成要素のファクトリscopeDecider - スコープを決定するクラスpublic <T> java.util.Optional<ComponentDefinition<T>> fromComponentClass(java.lang.Class<T> componentType, ErrorCollector errorCollector)
ComponentDefinitionFactoryfromComponentClass in interface ComponentDefinitionFactoryT - コンポーネントの型componentType - コンポーネントのクラスerrorCollector - バリデーションエラーを収集するクラス