| 程序包 | 说明 |
|---|---|
| org.nutz.ioc |
Ioc 容器
提供 Nutz.Ioc 所有的功能,什么是 Ioc 都不知道?
|
| org.nutz.ioc.impl | |
| org.nutz.ioc.val | |
| org.nutz.mvc |
基于注解的MVC
这个包很主要,啥都别说了,看文档吧。
|
| org.nutz.mvc.ioc |
| 限定符和类型 | 方法和说明 |
|---|---|
IocContext |
IocMaking.getContext() |
IocContext |
Ioc2.getIocContext()
获取容器的上下文对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
<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) |
| 构造器和说明 |
|---|
IocMaking(Ioc ioc,
MirrorFactory mirrors,
IocContext context,
ObjectMaker maker,
List<ValueProxyMaker> vpms,
String objName) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ComboContext
组合了一组 IocContext。
|
class |
ScopeContext
自定义级别上下文对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
IocContext[] |
ComboContext.getContexts() |
IocContext |
NutIoc.getIocContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
<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的创建过程
|
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
ReferTypeValue.getByType(Ioc ioc,
IocContext ctx) |
| 限定符和类型 | 方法和说明 |
|---|---|
static IocContext |
Mvcs.getIocContext()
获取对象装配的上下文环境
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
Mvcs.setIocContext(IocContext iocContext)
设置对象装配的上下文环境
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
RequestIocContext |
class |
SessionIocContext |
Copyright © 2017. All rights reserved.