Class JmsChannelModelProcessor
java.lang.Object
org.flowable.eventregistry.spring.jms.JmsChannelModelProcessor
- All Implemented Interfaces:
EventListener,ChannelModelProcessor,Aware,BeanFactoryAware,ApplicationContextAware,ApplicationListener<ContextRefreshedEvent>
public class JmsChannelModelProcessor
extends Object
implements BeanFactoryAware, ApplicationContextAware, ApplicationListener<ContextRefreshedEvent>, ChannelModelProcessor
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationContextprotected BeanFactorystatic final Stringprotected JmsListenerContainerFactory<?>protected Stringprotected booleanprotected StringValueResolverprotected JmsListenerEndpointRegistryprotected JmsOperationsprotected final org.slf4j.Loggerprotected com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionJmsChannelModelProcessor(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProcess(ChannelModel channelModel) booleancanProcessIfChannelModelAlreadyRegistered(ChannelModel channelModel) protected JmsListenerEndpointcreateJmsListenerEndpoint(JmsInboundChannelModel jmsChannelModel, String tenantId, EventRegistry eventRegistry) protected jakarta.jms.MessageListenercreateMessageListener(EventRegistry eventRegistry, InboundChannelModel inboundChannelModel) protected OutboundEventChannelAdaptercreateOutboundEventChannelAdapter(JmsOutboundChannelModel channelModel) protected StringgetEndpointId(ChannelModel channelModel, String tenantId) voidprotected voidprocessOutboundDefinition(JmsOutboundChannelModel channelModel) voidregisterChannelModel(ChannelModel channelModel, String tenantId, EventRegistry eventRegistry, EventRepositoryService eventRepositoryService, boolean fallbackToDefaultTenant) protected voidregisterEndpoint(JmsListenerEndpoint endpoint, JmsListenerContainerFactory<?> factory) Register a newJmsListenerEndpointalongside theJmsListenerContainerFactoryto use to create the underlying container.protected Stringprotected JmsListenerContainerFactory<?>resolveContainerFactory(JmsListenerEndpoint endpoint, JmsListenerContainerFactory<?> containerFactory) voidsetApplicationContext(ApplicationContext applicationContext) voidsetBeanFactory(BeanFactory beanFactory) voidsetContainerFactory(JmsListenerContainerFactory<?> containerFactory) voidsetContainerFactoryBeanName(String containerFactoryBeanName) voidsetEndpointRegistry(JmsListenerEndpointRegistry endpointRegistry) voidsetJmsOperations(JmsOperations jmsOperations) voidunregisterChannelModel(ChannelModel channelModel, String tenantId, EventRepositoryService eventRepositoryService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
CHANNEL_ID_PREFIX
- See Also:
-
logger
protected final org.slf4j.Logger logger -
jmsOperations
-
endpointRegistry
-
containerFactoryBeanName
-
containerFactory
-
beanFactory
-
applicationContext
-
contextRefreshed
protected boolean contextRefreshed -
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
embeddedValueResolver
-
-
Constructor Details
-
JmsChannelModelProcessor
public JmsChannelModelProcessor(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
canProcess
- Specified by:
canProcessin interfaceChannelModelProcessor
-
canProcessIfChannelModelAlreadyRegistered
- Specified by:
canProcessIfChannelModelAlreadyRegisteredin interfaceChannelModelProcessor
-
registerChannelModel
public void registerChannelModel(ChannelModel channelModel, String tenantId, EventRegistry eventRegistry, EventRepositoryService eventRepositoryService, boolean fallbackToDefaultTenant) - Specified by:
registerChannelModelin interfaceChannelModelProcessor
-
createJmsListenerEndpoint
protected JmsListenerEndpoint createJmsListenerEndpoint(JmsInboundChannelModel jmsChannelModel, String tenantId, EventRegistry eventRegistry) -
createMessageListener
protected jakarta.jms.MessageListener createMessageListener(EventRegistry eventRegistry, InboundChannelModel inboundChannelModel) -
processOutboundDefinition
-
createOutboundEventChannelAdapter
protected OutboundEventChannelAdapter createOutboundEventChannelAdapter(JmsOutboundChannelModel channelModel) -
unregisterChannelModel
public void unregisterChannelModel(ChannelModel channelModel, String tenantId, EventRepositoryService eventRepositoryService) - Specified by:
unregisterChannelModelin interfaceChannelModelProcessor
-
registerEndpoint
protected void registerEndpoint(JmsListenerEndpoint endpoint, JmsListenerContainerFactory<?> factory) Register a newJmsListenerEndpointalongside theJmsListenerContainerFactoryto use to create the underlying container.The
factorymay benullif the default factory has to be used for that endpoint. -
resolveContainerFactory
protected JmsListenerContainerFactory<?> resolveContainerFactory(JmsListenerEndpoint endpoint, JmsListenerContainerFactory<?> containerFactory) -
getEndpointId
-
resolve
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ContextRefreshedEvent>
-
getJmsOperations
-
setJmsOperations
-
getEndpointRegistry
-
setEndpointRegistry
-
getContainerFactoryBeanName
-
setContainerFactoryBeanName
-
getContainerFactory
-
setContainerFactory
-