T
- - builded specific object typeD
- - delegates type@Beta public abstract class AdapterBuilder<T,D> extends Object implements org.opendaylight.yangtools.concepts.Builder<T>
Constructor and Description |
---|
AdapterBuilder() |
Modifier and Type | Method and Description |
---|---|
<V extends D> |
addDelegate(Class<V> type,
D impl)
Add delegate to set of delegates.
|
T |
build() |
protected abstract T |
createInstance(com.google.common.collect.ClassToInstanceMap<D> immutableDelegates) |
abstract Set<? extends Class<? extends D>> |
getRequiredDelegates()
Get required delegates.
|
protected abstract T createInstance(com.google.common.collect.ClassToInstanceMap<D> immutableDelegates)
public abstract Set<? extends Class<? extends D>> getRequiredDelegates()
public final <V extends D> void addDelegate(Class<V> type, D impl)
type
- - type of delegateimpl
- - implementation of delegatepublic final T build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<T,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.