addAspect(Object), addAspect(Class), getProxy(), getProxy(ClassLoader), org.springframework.aop.framework.ProxyFactory
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | aspectCache
Cache for singleton aspect instances. |
| private final AspectJAdvisorFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addAdvisorsFromAspectInstanceFactory(MetadataAwareAspectInstanceFactory instanceFactory)
Add all |
| public void | |
| public void | |
| private MetadataAwareAspectInstanceFactory | createAspectInstanceFactory(AspectMetadata am, Class<?> aspectClass, String aspectName)
Create a |
| private AspectMetadata | createAspectMetadata(Class<?> aspectClass, String aspectName)
Create an |
| public <T> T | |
| public <T> T | Returns: the new proxythe class loader to create the proxy with classLoader)Create a new proxy according to the settings in this factory. |
| private Object | getSingletonAspectInstance(Class<?> aspectClass)
Get the singleton aspect instance for the supplied aspect type. |
| aspectCache | back to summary |
|---|---|
| private static final Map<Class<?>, Object> aspectCache Cache for singleton aspect instances. | |
| aspectFactory | back to summary |
|---|---|
| private final AspectJAdvisorFactory aspectFactory | |
| AspectJProxyFactory | back to summary |
|---|---|
| public AspectJProxyFactory() Create a new AspectJProxyFactory. | |
| AspectJProxyFactory | back to summary |
|---|---|
| public AspectJProxyFactory(Object target) Create a new AspectJProxyFactory. Will proxy all interfaces that the given target implements.
| |
| AspectJProxyFactory | back to summary |
|---|---|
| public AspectJProxyFactory(Class<?>... interfaces) Create a new | |
| addAdvisorsFromAspectInstanceFactory | back to summary |
|---|---|
| private void addAdvisorsFromAspectInstanceFactory(MetadataAwareAspectInstanceFactory instanceFactory) Add all | |
| addAspect | back to summary |
|---|---|
| public void addAspect(Object aspectInstance) Add the supplied aspect instance to the chain. The type of the aspect instance supplied must be a singleton aspect. True singleton lifecycle is not honoured when using this method - the caller is responsible for managing the lifecycle of any aspects added in this way.
| |
| addAspect | back to summary |
|---|---|
| public void addAspect(Class<?> aspectClass) Add an aspect of the supplied type to the end of the advice chain.
| |
| createAspectInstanceFactory | back to summary |
|---|---|
| private MetadataAwareAspectInstanceFactory createAspectInstanceFactory(AspectMetadata am, Class<?> aspectClass, String aspectName) Create a | |
| createAspectMetadata | back to summary |
|---|---|
| private AspectMetadata createAspectMetadata(Class<?> aspectClass, String aspectName) Create an | |
| getProxy | back to summary |
|---|---|
| public <T> T getProxy() Create a new proxy according to the settings in this factory. Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove interceptors. Uses a default class loader: Usually, the thread context class loader (if necessary for proxy creation).
| |
| getProxy | back to summary |
|---|---|
| public <T> T getProxy(ClassLoader classLoader) Create a new proxy according to the settings in this factory. Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove interceptors. Uses the given class loader (if necessary for proxy creation).
| |
| getSingletonAspectInstance | back to summary |
|---|---|
| private Object getSingletonAspectInstance(Class<?> aspectClass) Get the singleton aspect instance for the supplied aspect type. An instance is created if one cannot be found in the instance cache. | |