接口 TargetClassAware
- 所有已知子接口:
Advised,TargetSource
- 所有已知实现类:
AbstractBeanFactoryBasedTargetSource,AbstractLazyCreationTargetSource,AbstractPoolingTargetSource,AbstractPrototypeBasedTargetSource,AbstractRefreshableTargetSource,AdvisedSupport,AspectJProxyFactory,BeanFactoryRefreshableTargetSource,CommonsPool2TargetSource,EmptyTargetSource,HotSwappableTargetSource,JndiObjectTargetSource,LazyInitTargetSource,PrototypeTargetSource,ProxyCreatorSupport,ProxyFactory,ProxyFactoryBean,RefreshableScriptTargetSource,SimpleBeanTargetSource,SingletonTargetSource,ThreadLocalTargetSource
public interface TargetClassAware
Minimal interface for exposing the target class behind a proxy.Implemented by AOP proxy objects and proxy factories (via
Advised) as well as byTargetSources.- 从以下版本开始:
- 2.0.3
- 作者:
- Juergen Hoeller
- 另请参阅:
AopUtils.getTargetClass(Object)
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Class<?>getTargetClass()Return the target class behind the implementing object (typically a proxy configuration or an actual proxy).
方法详细资料
getTargetClass
@Nullable Class<?> getTargetClass()
Return the target class behind the implementing object (typically a proxy configuration or an actual proxy).- 返回:
- the target Class, or
nullif not known