public abstract class AopFactoryBase extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<Class<?>,BeanCreator<?>> |
beanCreators
bean loaders
|
protected Map<Class<?>,BeanInjector<?>> |
beanInjectors
bean builder
|
protected Map<String,BeanWrap> |
beans
bean库
|
protected Map<Class<?>,BeanWrap> |
beanWraps
bean包装库
|
protected Map<Class<?>,Class<?>> |
clzMapping
clz mapping
|
protected Set<Runnable> |
loadedEvent
bean 加载完成事件
|
| 构造器和说明 |
|---|
AopFactoryBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
beanCreatorAdd(Class<T> anno,
BeanCreator<T> creater)
添加 bean creator, injector
|
<T extends Annotation> |
beanInjectorAdd(Class<T> anno,
BeanInjector<T> injector) |
void |
beanNotice(Object key,
BeanWrap wrap)
bean通知
|
void |
beanSubscribe(Object key,
Act1<BeanWrap> callback)
bean订阅
|
protected void |
tryBeanCreate(Class<?> clz,
Annotation[] annS)
尝试生成bean
|
protected void |
tryBeanInject(FieldWrapTmp fwT,
Annotation[] annS)
尝试为bean注入
|
protected <T extends Annotation> |
tryCreateBeanByAnno(Class<?> clz,
T anno,
BeanCreator<T> loader)
尝试加载一个注解
|
abstract BeanWrap |
wrap(Class<?> clz,
Object raw) |
protected final Map<Class<?>,BeanCreator<?>> beanCreators
protected final Map<Class<?>,BeanInjector<?>> beanInjectors
public <T extends Annotation> void beanCreatorAdd(Class<T> anno, BeanCreator<T> creater)
public <T extends Annotation> void beanInjectorAdd(Class<T> anno, BeanInjector<T> injector)
protected void tryBeanInject(FieldWrapTmp fwT, Annotation[] annS)
protected void tryBeanCreate(Class<?> clz, Annotation[] annS)
protected <T extends Annotation> void tryCreateBeanByAnno(Class<?> clz, T anno, BeanCreator<T> loader)
Copyright © 2020. All rights reserved.