@ExperimentalApi public abstract class AbstractInjectionConfiguration extends Object implements InjectionConfiguration
InjectionConfiguration.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractInjectionConfiguration.InterfaceToImpl |
protected static class |
AbstractInjectionConfiguration.InterfaceToInstance |
| Modifier and Type | Field and Description |
|---|---|
protected List<AbstractInjectionConfiguration.InterfaceToImpl> |
interfacesToImpls |
protected List<AbstractInjectionConfiguration.InterfaceToInstance> |
interfacesToInstances |
| Constructor and Description |
|---|
AbstractInjectionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
<I> InjectionConfiguration |
addImplementation(Class<I> interfaceType,
Class<? extends I> implementationType)
Add mapping from interface to a concrete implementation.
|
<C,I extends C> |
addSingleton(Class<C> type,
I instance)
Add mapping from a type to a singleton instance of this type that shall be used for injection in given context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishprotected final List<AbstractInjectionConfiguration.InterfaceToImpl> interfacesToImpls
protected final List<AbstractInjectionConfiguration.InterfaceToInstance> interfacesToInstances
@Nonnull public final <I> InjectionConfiguration addImplementation(@Nonnull Class<I> interfaceType, @Nonnull Class<? extends I> implementationType)
InjectionConfigurationaddImplementation in interface InjectionConfigurationI - type parameter of the interfaceinterfaceType - specifies the interfaceimplementationType - specifies the implementation of interfaceType@Nonnull public final <C,I extends C> InjectionConfiguration addSingleton(@Nonnull Class<C> type, @Nonnull I instance)
InjectionConfigurationaddSingleton in interface InjectionConfigurationC - type component of the componentI - type parameter of the implementing instancetype - component typeinstance - implementing singleton instanceCopyright © 2016 Atlassian. All rights reserved.