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

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

Best Java code snippets using org.springframework.aop.framework.ProxyConfig.setExposeProxy (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.setExposeProxy(Boolean.valueOf(element.getAttribute("expose-proxy")));
origin: com.yammer.metrics/metrics-spring

proxyConfig.setExposeProxy(Boolean.valueOf(element.getAttribute("expose-proxy")));
org.springframework.aop.frameworkProxyConfigsetExposeProxy

Javadoc

Set whether the proxy should be exposed by the AOP framework as a ThreadLocal for retrieval via the AopContext class. This is useful if an advised object needs to call another advised method on itself. (If it uses 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.

Popular methods of ProxyConfig

  • toString
  • <init>
  • setProxyTargetClass
    Set whether to proxy the target class directly, instead of just proxying specific interfaces. Defaul
  • 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

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • setContentView (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Github Copilot alternatives
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