K - DI key type.E - Collection element type.public abstract class DICollectionBuilder<K,E> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Key<K> |
bindingKey |
protected DefaultInjector |
injector |
| Constructor and Description |
|---|
DICollectionBuilder(Key<K> bindingKey,
DefaultInjector injector) |
| Modifier and Type | Method and Description |
|---|---|
protected Provider<E> |
createInstanceProvider(E value) |
protected <SubT extends E> |
createTypeProvider(Class<SubT> interfaceType) |
protected <SubT extends E> |
findOrCreateBinding(Class<SubT> interfaceType) |
void |
in(Scope scope) |
protected DefaultInjector injector
public DICollectionBuilder(Key<K> bindingKey, DefaultInjector injector)
protected <SubT extends E> Provider<SubT> createTypeProvider(Class<SubT> interfaceType) throws DIRuntimeException
DIRuntimeExceptionprotected <SubT extends E> org.apache.cayenne.di.spi.Binding<SubT> findOrCreateBinding(Class<SubT> interfaceType)
public void in(Scope scope)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.