@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=DelegatingMetricsConfiguration.class) public @interface EnableMetrics
@Configurationclass to have the Spring MVC configuration defined in
|Modifier and Type||Optional Element and Description|
Set whether the proxy should be exposed by the AOP framework as a ThreadLocal for retrieval via the AopContext class.
Set whether to proxy the target class directly, instead of just proxying specific interfaces.
public abstract boolean exposeProxy
this, the invocation will not be advised).
Default is "false", in order to avoid unnecessary extra interception. This means that no guarantees are provided that AopContext access will work consistently within any method of the advised object.
public abstract boolean proxyTargetClass
Set this to "true" to force proxying for the TargetSource's exposed target class. If that target class is an interface, a JDK proxy will be created for the given interface. If that target class is any other class, a CGLIB proxy will be created for the given class.
Note: Depending on the configuration of the concrete proxy factory, the proxy-target-class behavior will also be applied if no interfaces have been specified (and no interface autodetection is activated).
Copyright © 2012-2013. All Rights Reserved.