|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.ioc.IocConfigImpl<T>
public class IocConfigImpl<T>
| Constructor Summary | |
|---|---|
IocConfigImpl(Class<T> clazz)
|
|
| Method Summary | |
|---|---|
Class<T> |
getBoundClass()
|
Class<? extends IocProvider<? extends T>> |
getProviderClass()
|
IoCResource.Scope |
getScope()
|
Class<? extends T> |
getToClass()
|
boolean |
isRuntimeAccessible()
|
IocConfig<T> |
runtimeAccessible(boolean accessible)
By default, types assigned to container can not be requested directly by user programmatically. |
IocConfigImpl<T> |
scope(IoCResource.Scope scope)
Defines the scope where the created object will be saved |
IocConfigImpl<T> |
toClass(Class<? extends T> toClass)
Bound a new concrete class that will be returned when given class is requested to IOC container. |
IocConfigImpl<T> |
toProvider(Class<? extends IocProvider<? extends T>> providerClass)
Bound a provider class that will be used to instantiate new objects by IOC container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IocConfigImpl(Class<T> clazz)
| Method Detail |
|---|
public IocConfig<T> runtimeAccessible(boolean accessible)
IocConfigview.getIoCContainer().get(MyType.class, scope, subscope);
runtimeAccessible in interface IocConfig<T>public IocConfigImpl<T> toProvider(Class<? extends IocProvider<? extends T>> providerClass)
IocConfig
toProvider in interface IocConfig<T>public IocConfigImpl<T> toClass(Class<? extends T> toClass)
IocConfig
toClass in interface IocConfig<T>public IocConfigImpl<T> scope(IoCResource.Scope scope)
IocConfig
scope in interface IocConfig<T>public boolean isRuntimeAccessible()
public Class<T> getBoundClass()
public Class<? extends IocProvider<? extends T>> getProviderClass()
public Class<? extends T> getToClass()
public IoCResource.Scope getScope()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||