|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IocConfig<T>
A Type binding configuration for Crux IoC container.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||