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

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

Best Java code snippets using org.springframework.messaging.handler.MessagingAdviceBean.getBeanType (Showing top 3 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: 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.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);
        }
      }
    }
  }
}
org.springframework.messaging.handlerMessagingAdviceBeangetBeanType

Javadoc

Return the type of the contained advice bean.

If the bean type is a CGLIB-generated class, the original user-defined class is returned.

Popular methods of MessagingAdviceBean

  • 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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • CodeWhisperer 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