spring-framework / org.springframework.jms.config / MethodJmsListenerEndpoint

MethodJmsListenerEndpoint

open class MethodJmsListenerEndpoint : AbstractJmsListenerEndpoint, BeanFactoryAware

A JmsListenerEndpoint providing the method to invoke to process an incoming message for this endpoint.

Author
Stephane Nicoll

Author
Juergen Hoeller

Since
4.1

Constructors

<init>

MethodJmsListenerEndpoint()

A JmsListenerEndpoint providing the method to invoke to process an incoming message for this endpoint.

Functions

getBean

open fun getBean(): Any

getMethod

open fun getMethod(): Method

getMostSpecificMethod

open fun getMostSpecificMethod(): Method

setBean

open fun setBean(bean: Any): Unit

Set the actual bean instance to invoke this endpoint method on.

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit

Set the BeanFactory to use to resolve expressions (may be null).

setEmbeddedValueResolver

open fun setEmbeddedValueResolver(embeddedValueResolver: StringValueResolver): Unit

Set a value resolver for embedded placeholders and expressions.

setMessageHandlerMethodFactory

open fun setMessageHandlerMethodFactory(messageHandlerMethodFactory: MessageHandlerMethodFactory): Unit

Set the MessageHandlerMethodFactory to use to build the InvocableHandlerMethod responsible to manage the invocation of this endpoint.

setMethod

open fun setMethod(method: Method): Unit

Set the method to invoke for processing a message managed by this endpoint.

setMostSpecificMethod

open fun setMostSpecificMethod(mostSpecificMethod: Method): Unit

Set the most specific method known for this endpoint's declaration.

In case of a proxy, this will be the method on the target class (if annotated itself, that is, if not just annotated in an interface).

Inherited Functions

getConcurrency

open fun getConcurrency(): String

Return the concurrency for the listener, if any.

getDestination

open fun getDestination(): String

Return the name of the destination for this endpoint.

getId

open fun getId(): String

getSelector

open fun getSelector(): String

Return the JMS message selector expression, if any.

getSubscription

open fun getSubscription(): String

Return the name for the durable subscription, if any.

setConcurrency

open fun setConcurrency(concurrency: String): Unit

Set a concurrency for the listener, if any.

The concurrency limits can be a "lower-upper" String, e.g. "5-10", or a simple upper limit String, e.g. "10" (the lower limit will be 1 in this case).

The underlying container may or may not support all features. For instance, it may not be able to scale: in that case only the upper value is used.

setDestination

open fun setDestination(destination: String): Unit

Set the name of the destination for this endpoint.

setId

open fun setId(id: String): Unit

setSelector

open fun setSelector(selector: String): Unit

Set the JMS message selector expression.

See the JMS specification for a detailed definition of selector expressions.

setSubscription

open fun setSubscription(subscription: String): Unit

Set the name for the durable subscription.

setupListenerContainer

open fun setupListenerContainer(listenerContainer: MessageListenerContainer): Unit

toString

open fun toString(): String