Class BeanResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.bean.BeanResource
-
@Path("/bean") @ApplicationScoped public class BeanResource extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBeanResource.ProduceInterface
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.CamelContextcamelContext(package private) Map<String,List<String>>collectedNames(package private) Countercounter(package private) BeanResource.ProduceInterfaceproduceInterface(package private) EagerAppScopedRouteBuilderrouteBuilder(package private) org.apache.camel.ProducerTemplatetemplate
-
Constructor Summary
Constructors Constructor Description BeanResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringawaitFirst(String key)StringbeanMethodInHeader(String statement)intcounter()intlazyConfigureCounter()StringmethodWithExchangeArg(Employee employee, String route)StringparameterBindingAnnotations(String statement, String greeting)StringproduceInterface(String payload)Stringroute(String route)Stringroute(String statement, String route)introuteBuilderConfigureCounter()introuteBuilderInjectedCount()introuteBuilderInstanceCounter()Set<String>withAllBeanInstances()Set<String>withAlternativeBean()Set<String>withDefaultBean()Set<String>withoutDefaultBeans()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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)
-
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()
-
-