public interface IocConfig<T>
| Modifier and Type | Method and Description |
|---|---|
IocConfig<T> |
runtimeAccessible(boolean accessible)
By default, types assigned to container can not be requested directly by user programmatically.
|
IocConfig<T> |
scope(IoCResource.Scope scope)
Defines the scope where the created object will be saved
|
IocConfig<T> |
toClass(Class<? extends T> toClass)
Bound a new concrete class that will be returned when given class is requested to IOC container.
|
IocConfig<T> |
toProvider(Class<? extends IocProvider<? extends T>> providerClass)
Bound a provider class that will be used to instantiate new objects by IOC container.
|
IocConfig<T> toProvider(Class<? extends IocProvider<? extends T>> providerClass)
providerClass - IocConfig<T> toClass(Class<? extends T> toClass)
toClass - IocConfig<T> runtimeAccessible(boolean accessible)
view.getIoCContainer().get(MyType.class, scope, subscope);accessible - IocConfig<T> scope(IoCResource.Scope scope)
Copyright © 2015. All rights reserved.