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

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

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

origin: spring-projects/spring-framework

/**
 * For debugging/diagnostic use.
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder(getClass().getName());
  sb.append(": ").append(this.interfaces.size()).append(" interfaces ");
  sb.append(ClassUtils.classNamesToString(this.interfaces)).append("; ");
  sb.append(this.advisors.size()).append(" advisors ");
  sb.append(this.advisors).append("; ");
  sb.append("targetSource [").append(this.targetSource).append("]; ");
  sb.append(super.toString());
  return sb.toString();
}
origin: spring-projects/spring-framework

@Test
public void testForceProxyTargetClass() {
  ClassPathXmlApplicationContext bf = newContext("aspectsWithCGLIB.xml");
  ProxyConfig pc = (ProxyConfig) bf.getBean(AopConfigUtils.AUTO_PROXY_CREATOR_BEAN_NAME);
  assertTrue("should be proxying classes", pc.isProxyTargetClass());
  assertTrue("should expose proxy", pc.isExposeProxy());
}
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

final ProxyConfig proxyConfig = new ProxyConfig();
  proxyConfig.setExposeProxy(Boolean.valueOf(element.getAttribute("expose-proxy")));
  proxyConfig.setProxyTargetClass(Boolean.valueOf(element.getAttribute("proxy-target-class")));
origin: com.yammer.metrics/metrics-spring

ProxyConfig proxyConfig = new ProxyConfig();
  proxyConfig.setExposeProxy(Boolean.valueOf(element.getAttribute("expose-proxy")));
  proxyConfig.setProxyTargetClass(Boolean.valueOf(element.getAttribute("proxy-target-class")));
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop

/**
 * For debugging/diagnostic use.
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder(getClass().getName());
  sb.append(": ").append(this.interfaces.size()).append(" interfaces ");
  sb.append(ClassUtils.classNamesToString(this.interfaces)).append("; ");
  sb.append(this.advisors.size()).append(" advisors ");
  sb.append(this.advisors).append("; ");
  sb.append("targetSource [").append(this.targetSource).append("]; ");
  sb.append(super.toString());
  return sb.toString();
}
origin: springframework/spring-aop

/**
 * For debugging/diagnostic use.
 */
public String toString() {
  StringBuffer sb = new StringBuffer(getClass().getName() + ": ");
  sb.append(this.interfaces.size()).append(" interfaces=[");
  sb.append(AopUtils.interfacesString(interfaces));
  sb.append("]; ");
  sb.append(this.advisors.size()).append(" advisors=[");
  sb.append(StringUtils.collectionToDelimitedString(this.advisors, ",", "{", "}")).append("]; ");
  sb.append("targetSource=[").append(this.targetSource).append("]; ");
  sb.append(super.toString());
  sb.append("advisorChainFactory=").append(this.advisorChainFactory);
  return sb.toString();
}
org.springframework.aop.frameworkProxyConfig

Javadoc

Convenience superclass for configuration used in creating proxies, to ensure that all proxy creators have consistent properties.

Most used methods

  • toString
  • <init>
  • setExposeProxy
    Set whether the proxy should be exposed by the AOP framework as a ThreadLocal for retrieval via the
  • 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

  • Making http requests using okhttp
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
  • From CI to AI: The AI layer in your organization
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