|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.ProxyConfig org.springframework.aop.framework.AdvisedSupport org.springframework.aop.aspectj.annotation.AspectJProxyFactory
public class AspectJProxyFactory
Field Summary |
---|
Fields inherited from class org.springframework.aop.framework.AdvisedSupport |
---|
EMPTY_TARGET_SOURCE |
Fields inherited from class org.springframework.aop.framework.ProxyConfig |
---|
exposeProxy, logger |
Constructor Summary | |
---|---|
AspectJProxyFactory()
Create a new AspectJProxyFactory . |
|
AspectJProxyFactory(Class[] interfaces)
Create a new AspectJProxyFactory . |
|
AspectJProxyFactory(Object target)
Create a new AspectJProxyFactory . |
Method Summary | ||
---|---|---|
void |
addAspect(Class aspectType)
Adds an aspect of the supplied type to the end of the advice chain. |
|
void |
addAspect(Object aspect)
Adds the supplied aspect instance to the chain. |
|
|
getProxy()
Create a new proxy according to the settings in this factory. |
|
|
getProxy(ClassLoader classLoader)
Create a new proxy according to the settings in this factory. |
Methods inherited from class org.springframework.aop.framework.AdvisedSupport |
---|
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisor, addAllAdvisors, addInterface, addListener, adviceChanged, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, createAopProxy, getAdvisorChainFactory, getAdvisors, getAdvisorsInternal, getProxiedInterfaces, getTargetSource, indexOf, indexOf, isActive, isInterfaceProxied, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, removeListener, replaceAdvisor, setAdvisorChainFactory, setInterfaces, setTarget, setTargetSource, toProxyConfigString, toString, updateAdvisorArray, writeReplace |
Methods inherited from class org.springframework.aop.framework.ProxyConfig |
---|
copyFrom, getAopProxyFactory, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setAopProxyFactory, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.aop.framework.Advised |
---|
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy |
Constructor Detail |
---|
public AspectJProxyFactory()
AspectJProxyFactory
.
public AspectJProxyFactory(Object target) throws AopConfigException
AspectJProxyFactory
.
Proxy all interfaces of the given target.
AopConfigException
public AspectJProxyFactory(Class[] interfaces)
AspectJProxyFactory
.
No target, only interfaces. Must add interceptors.
Method Detail |
---|
public <T> T getProxy()
Uses a default class loader: Usually, the thread context class loader (if necessary for proxy creation).
public <T> T getProxy(ClassLoader classLoader)
Uses the given class loader (if necessary for proxy creation).
classLoader
- the class loader to create the proxy with
public void addAspect(Object aspect)
public void addAspect(Class aspectType)
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |