Module CamelJavaAnnotations

Provides classes and predicates for the Apache Camel Java annotations.

Apache Camel allows “routes” to be defined in Java, using annotations. For example:

public class ConsumeMdb {
  @Consume(uri = "activemq:queue:sayhello")
  public String onMyMessage(String message) {
      return "Hello " + message;
  }
}

This creates a route to the ConsumeMdb class for messages sent to “activemq:queue:sayhello”.

Import path

semmle.code.java.frameworks.camel.CamelJavaAnnotations

Imports

Reflection

Provides classes and predicates for working with Java Reflection.

Spring
java

Provides all default Java QL imports.

Classes

CamelAnnotation
CamelConsumeAnnotation

An annotation indicating that the annotated method is called by Apache Camel.

CamelConsumeMethod

A method that may be called by Apache Camel in response to a message.