Package | Description |
---|---|
org.nutz.ioc |
Ioc 容器
|
org.nutz.ioc.impl | |
org.nutz.ioc.val | |
org.nutz.mvc |
基于注解的MVC
|
org.nutz.mvc.ioc |
Modifier and Type | Method and Description |
---|---|
IocContext |
IocMaking.getContext() |
IocContext |
Ioc2.getIocContext()
获取容器的上下文对象
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Ioc2.get(Class<T> type,
String name,
IocContext context)
这是更高级的 Ioc 获取对象的方法,它传给 Ioc 容器一个上下文环境。
容器以此作为参考,决定如何构建对象,或者将对象缓存在何处 |
<T> T |
Ioc2.getByType(Class<T> type,
IocContext context) |
String[] |
Ioc2.getNamesByType(Class<?> klass,
IocContext context) |
Constructor and Description |
---|
IocMaking(Ioc ioc,
MirrorFactory mirrors,
IocContext context,
ObjectMaker maker,
List<ValueProxyMaker> vpms,
String objName) |
Modifier and Type | Class and Description |
---|---|
class |
ComboContext
组合了一组 IocContext。每当保存(save)时,会存入所有的Context。
|
class |
ScopeContext
自定义级别上下文对象
|
Modifier and Type | Method and Description |
---|---|
IocContext[] |
ComboContext.getContexts() |
IocContext |
NutIoc.getIocContext() |
Modifier and Type | Method and Description |
---|---|
<T> T |
NutIoc.get(Class<T> type,
String name,
IocContext context) |
<K> K |
NutIoc.getByType(Class<K> klass,
IocContext context) |
String[] |
NutIoc.getNamesByType(Class<?> klass,
IocContext context) |
IocMaking |
NutIoc.makeIocMaking(IocContext context,
String name)
暴露IocMaking的创建过程
|
Constructor and Description |
---|
ComboContext(IocContext... contexts)
Context 的获取优先级,以数组的顺序来决定
|
NutIoc(IocLoader loader,
IocContext context,
String defaultScope) |
NutIoc(ObjectMaker maker,
IocLoader loader,
IocContext context,
String defaultScope) |
NutIoc(ObjectMaker maker,
IocLoader loader,
IocContext context,
String defaultScope,
MirrorFactory mirrors) |
Modifier and Type | Method and Description |
---|---|
Object |
ReferTypeValue.getByType(Ioc ioc,
IocContext ctx) |
Modifier and Type | Method and Description |
---|---|
static IocContext |
Mvcs.getIocContext()
获取对象装配的上下文环境
|
Modifier and Type | Method and Description |
---|---|
static void |
Mvcs.setIocContext(IocContext iocContext)
设置对象装配的上下文环境
|
Modifier and Type | Class and Description |
---|---|
class |
RequestIocContext |
class |
SessionIocContext |
Copyright © 2017. All rights reserved.