public class Aop extends Object
Aop class.
| 构造器和说明 |
|---|
Aop() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
addMapping(Class<T> from,
Class<? extends T> to)
addMapping.
|
static <T> void |
addMapping(Class<T> from,
String to)
addMapping.
|
static void |
addSingletonObject(Object singletonObject)
addSingletonObject.
|
static <T> T |
get(Class<T> targetClass)
get.
|
static <T> T |
get(Class<T> targetClass,
int injectDepth)
get.
|
static AopFactory |
getAopFactory()
Getter for the field
aopFactory. |
static int |
getInjectDepth()
getInjectDepth.
|
static <T> T |
inject(T targetObject)
inject.
|
static <T> T |
inject(T targetObject,
int injectDepth)
inject.
|
static boolean |
isSingleton()
isSingleton.
|
static void |
setAopFactory(AopFactory aopFactory)
Setter for the field
aopFactory. |
static void |
setEnhance(boolean enhance)
已过时。
|
static void |
setInjectDepth(int injectDepth)
setInjectDepth.
|
static void |
setSingleton(boolean singleton)
setSingleton.
|
public static <T> T get(Class<T> targetClass)
get.
T - a T object.targetClass - a Class object.public static <T> T get(Class<T> targetClass, int injectDepth)
get.
T - a T object.targetClass - a Class object.injectDepth - a int.public static <T> T inject(T targetObject)
inject.
T - a T object.targetObject - a T object.public static <T> T inject(T targetObject,
int injectDepth)
inject.
T - a T object.targetObject - a T object.injectDepth - a int.public static void addSingletonObject(Object singletonObject)
addSingletonObject.
singletonObject - a Object object.public static void setAopFactory(AopFactory aopFactory)
Setter for the field aopFactory.
aopFactory - a AopFactory object.public static AopFactory getAopFactory()
Getter for the field aopFactory.
AopFactory object.@Deprecated public static void setEnhance(boolean enhance)
setEnhance.
enhance - a boolean.public static void setSingleton(boolean singleton)
setSingleton.
singleton - a boolean.public static boolean isSingleton()
isSingleton.
public static void setInjectDepth(int injectDepth)
setInjectDepth.
injectDepth - a int.public static int getInjectDepth()
getInjectDepth.
Copyright © 2023. All rights reserved.