Class BeanResource

java.lang.Object
org.apache.camel.quarkus.component.bean.BeanResource

@Path("/bean") @ApplicationScoped public class BeanResource extends Object
  • Field Details

    • template

      @Inject org.apache.camel.ProducerTemplate template
    • counter

      @Inject Counter counter
    • routeBuilder

      @Inject EagerAppScopedRouteBuilder routeBuilder
    • camelContext

      @Inject org.apache.camel.CamelContext camelContext
    • produceInterface

      @Produce("direct:produceInterface") BeanResource.ProduceInterface produceInterface
    • collectedNames

      @Inject @Named("collected-names") Map<String,List<String>> collectedNames
  • Constructor Details

    • BeanResource

      public BeanResource()
  • Method Details

    • route

      @Path("/route/{route}") @POST @Consumes("text/plain") @Produces("text/plain") public String route(String statement, @PathParam("route") String route)
    • route

      @Path("/route/{route}") @GET @Produces("text/plain") public String route(@PathParam("route") String route)
    • beanMethodInHeader

      @Path("/beanMethodInHeader") @POST @Consumes("text/plain") @Produces("text/plain") public String beanMethodInHeader(String statement)
    • counter

      @Path("/counter") @GET @Produces("text/plain") public int counter()
    • routeBuilderInstanceCounter

      @Path("/route-builder-instance-counter") @GET @Produces("text/plain") public int routeBuilderInstanceCounter()
    • routeBuilderConfigureCounter

      @Path("/route-builder-configure-counter") @GET @Produces("text/plain") public int routeBuilderConfigureCounter()
    • routeBuilderInjectedCount

      @Path("/route-builder-injected-count") @GET @Produces("text/plain") public int routeBuilderInjectedCount()
    • lazyConfigureCounter

      @Path("/camel-configure-counter") @GET @Produces("text/plain") public int lazyConfigureCounter()
    • methodWithExchangeArg

      @Path("/employee/{route}") @POST @Consumes("application/json") @Produces("text/plain") public String methodWithExchangeArg(Employee employee, @PathParam("route") String route)
    • parameterBindingAnnotations

      @Path("/parameterBindingAnnotations/{greeting}") @POST @Consumes("text/plain") @Produces("text/plain") public String parameterBindingAnnotations(String statement, @PathParam("greeting") String greeting)
    • produceInterface

      @Path("/produceInterface") @POST @Consumes("text/plain") @Produces("text/plain") public String produceInterface(String payload)
    • awaitFirst

      String awaitFirst(String key)
    • withDefaultBean

      @Path("/withDefaultBeanCount") @GET @Produces("application/json") public Set<String> withDefaultBean()
    • withAlternativeBean

      @Path("/withAlternativeBeanCount") @GET @Produces("application/json") public Set<String> withAlternativeBean()
    • withoutDefaultBeans

      @Path("/withoutDefaultBeans") @GET @Produces("application/json") public Set<String> withoutDefaultBeans()
    • withAllBeanInstances

      @Path("/allBeanInstances") @GET @Produces("application/json") public Set<String> withAllBeanInstances()