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

How to use
MessagingAdviceBean
in
org.springframework.messaging.handler

Best Java code snippets using org.springframework.messaging.handler.MessagingAdviceBean (Showing top 7 results out of 315)

origin: spring-projects/spring-framework

private void initMessagingAdviceCache(@Nullable List<MessagingAdviceBean> beans) {
  if (beans == null) {
    return;
  }
  for (MessagingAdviceBean bean : beans) {
    Class<?> type = bean.getBeanType();
    if (type != null) {
      AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type);
      if (resolver.hasExceptionMappings()) {
        registerExceptionHandlerAdvice(bean, resolver);
        if (logger.isTraceEnabled()) {
          logger.trace("Detected @MessageExceptionHandler methods in " + bean);
        }
      }
    }
  }
}
origin: spring-projects/spring-framework

if (advice.isApplicableToBeanType(beanType)) {
  resolver = this.exceptionHandlerAdviceCache.get(advice);
  method = resolver.resolveMethod(exception);
  if (method != null) {
    return new InvocableHandlerMethod(advice.resolveBean(), method);
origin: org.springframework/spring-messaging

if (advice.isApplicableToBeanType(beanType)) {
  resolver = this.exceptionHandlerAdviceCache.get(advice);
  method = resolver.resolveMethod(exception);
  if (method != null) {
    return new InvocableHandlerMethod(advice.resolveBean(), method);
origin: org.springframework/spring-websocket

private void initMessagingAdviceCache(@Nullable List<MessagingAdviceBean> beans) {
  if (beans == null) {
    return;
  }
  for (MessagingAdviceBean bean : beans) {
    Class<?> type = bean.getBeanType();
    if (type != null) {
      AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type);
      if (resolver.hasExceptionMappings()) {
        registerExceptionHandlerAdvice(bean, resolver);
        if (logger.isTraceEnabled()) {
          logger.trace("Detected @MessageExceptionHandler methods in " + bean);
        }
      }
    }
  }
}
origin: apache/servicemix-bundles

if (advice.isApplicableToBeanType(beanType)) {
  resolver = this.exceptionHandlerAdviceCache.get(advice);
  method = resolver.resolveMethod(exception);
  if (method != null) {
    return new InvocableHandlerMethod(advice.resolveBean(), method);
origin: apache/servicemix-bundles

private void initMessagingAdviceCache(@Nullable List<MessagingAdviceBean> beans) {
  if (beans == null) {
    return;
  }
  for (MessagingAdviceBean bean : beans) {
    Class<?> type = bean.getBeanType();
    if (type != null) {
      AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type);
      if (resolver.hasExceptionMappings()) {
        registerExceptionHandlerAdvice(bean, resolver);
        if (logger.isInfoEnabled()) {
          logger.info("Detected @MessageExceptionHandler methods in " + bean);
        }
      }
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-messaging

if (advice.isApplicableToBeanType(beanType)) {
  resolver = this.exceptionHandlerAdviceCache.get(advice);
  method = resolver.resolveMethod(exception);
  if (method != null) {
    return new InvocableHandlerMethod(advice.resolveBean(), method);
org.springframework.messaging.handlerMessagingAdviceBean

Javadoc

Represents a Spring-managed bean with cross-cutting functionality to be applied to one or more Spring beans with annotation-based message handling methods.

Component stereotypes such as org.springframework.stereotype.Controller with annotation handler methods often need cross-cutting functionality across all or a subset of such annotated components. A primary example of this is the need for "global" annotated exception handler methods but the concept applies more generally.

Most used methods

  • getBeanType
    Return the type of the contained advice bean.If the bean type is a CGLIB-generated class, the origin
  • isApplicableToBeanType
    Whether this MessagingAdviceBean applies to the given bean type.
  • resolveBean
    Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFac

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JTextField (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text 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