类 MethodJmsListenerEndpoint
- java.lang.Object
- org.springframework.jms.config.AbstractJmsListenerEndpoint
- org.springframework.jms.config.MethodJmsListenerEndpoint
- 所有已实现的接口:
Aware
,BeanFactoryAware
,JmsListenerEndpoint
public class MethodJmsListenerEndpoint extends AbstractJmsListenerEndpoint implements BeanFactoryAware
AJmsListenerEndpoint
providing the method to invoke to process an incoming message for this endpoint.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll, Juergen Hoeller
构造器概要
构造器 构造器 说明 MethodJmsListenerEndpoint()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected MessagingMessageListenerAdapter
createMessageListener(MessageListenerContainer container)
Create aMessageListener
that is able to serve this endpoint for the specified container.protected MessagingMessageListenerAdapter
createMessageListenerInstance()
Create an emptyMessagingMessageListenerAdapter
instance.Object
getBean()
protected String
getDefaultResponseDestination()
Return the default response destination, if any.protected StringBuilder
getEndpointDescription()
Return a description for this endpoint.Method
getMethod()
Method
getMostSpecificMethod()
void
setBean(Object bean)
Set the actual bean instance to invoke this endpoint method on.void
setBeanFactory(BeanFactory beanFactory)
Set theBeanFactory
to use to resolve expressions (may benull
).void
setEmbeddedValueResolver(StringValueResolver embeddedValueResolver)
Set a value resolver for embedded placeholders and expressions.void
setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
Set theMessageHandlerMethodFactory
to use to build theInvocableHandlerMethod
responsible to manage the invocation of this endpoint.void
setMethod(Method method)
Set the method to invoke for processing a message managed by this endpoint.void
setMostSpecificMethod(Method mostSpecificMethod)
Set the most specific method known for this endpoint's declaration.从类继承的方法 org.springframework.jms.config.AbstractJmsListenerEndpoint
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
构造器详细资料
MethodJmsListenerEndpoint
public MethodJmsListenerEndpoint()
方法详细资料
setBean
public void setBean(Object bean)
Set the actual bean instance to invoke this endpoint method on.
setMethod
public void setMethod(Method method)
Set the method to invoke for processing a message managed by this endpoint.
setMostSpecificMethod
public void setMostSpecificMethod(Method mostSpecificMethod)
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).
- 从以下版本开始:
- 4.2.3
getMostSpecificMethod
public Method getMostSpecificMethod()
setMessageHandlerMethodFactory
public void setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
Set theMessageHandlerMethodFactory
to use to build theInvocableHandlerMethod
responsible to manage the invocation of this endpoint.
setEmbeddedValueResolver
public void setEmbeddedValueResolver(StringValueResolver embeddedValueResolver)
Set a value resolver for embedded placeholders and expressions.
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
Set theBeanFactory
to use to resolve expressions (may benull
).- 指定者:
setBeanFactory
在接口中BeanFactoryAware
- 参数:
beanFactory
- owning BeanFactory (nevernull
). The bean can immediately call methods on the factory.- 另请参阅:
BeanInitializationException
createMessageListener
protected MessagingMessageListenerAdapter createMessageListener(MessageListenerContainer container)
从类复制的说明:AbstractJmsListenerEndpoint
Create aMessageListener
that is able to serve this endpoint for the specified container.
createMessageListenerInstance
protected MessagingMessageListenerAdapter createMessageListenerInstance()
Create an emptyMessagingMessageListenerAdapter
instance.- 返回:
- a new
MessagingMessageListenerAdapter
or subclass thereof
getDefaultResponseDestination
protected String getDefaultResponseDestination()
Return the default response destination, if any.
getEndpointDescription
protected StringBuilder getEndpointDescription()
从类复制的说明:AbstractJmsListenerEndpoint
Return a description for this endpoint.Available to subclasses, for inclusion in their
toString()
result.