Tabnine Logo
ProxyConfig.setProxyTargetClass
Code IndexAdd Tabnine to your IDE (free)

How to use
setProxyTargetClass
method
in
org.springframework.aop.framework.ProxyConfig

Best Java code snippets using org.springframework.aop.framework.ProxyConfig.setProxyTargetClass (Showing top 3 results out of 315)

origin: ryantenney/metrics-spring

@Override
public void setImportMetadata(AnnotationMetadata importMetadata) {
  final AnnotationAttributes enableMetrics = AnnotationAttributes.fromMap(importMetadata.getAnnotationAttributes(EnableMetrics.class.getName(), false));
  Assert.notNull(enableMetrics, "@" + EnableMetrics.class.getSimpleName() + " is not present on importing class " + importMetadata.getClassName());
  this.proxyConfig = new ProxyConfig();
  this.proxyConfig.setExposeProxy(enableMetrics.getBoolean("exposeProxy"));
  this.proxyConfig.setProxyTargetClass(enableMetrics.getBoolean("proxyTargetClass"));
}
origin: ryantenney/metrics-spring

proxyConfig.setProxyTargetClass(Boolean.valueOf(element.getAttribute("proxy-target-class")));
origin: com.yammer.metrics/metrics-spring

proxyConfig.setProxyTargetClass(Boolean.valueOf(element.getAttribute("proxy-target-class")));
org.springframework.aop.frameworkProxyConfigsetProxyTargetClass

Javadoc

Set whether to proxy the target class directly, instead of just proxying specific interfaces. Default is "false".

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).

Popular methods of ProxyConfig

  • toString
  • <init>
  • setExposeProxy
    Set whether the proxy should be exposed by the AOP framework as a ThreadLocal for retrieval via the
  • isExposeProxy
    Return whether the AOP proxy will expose the AOP proxy for each invocation.
  • isProxyTargetClass
    Return whether to proxy the target class directly as well as any interfaces.

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Option (scala)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now