Class AlfrescoEventsAutoConfiguration
- java.lang.Object
-
- org.alfresco.event.sdk.autoconfigure.AlfrescoEventsAutoConfiguration
-
@Configuration @AutoConfigureAfter({org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration.class,org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration.class,org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration.class}) @ConditionalOnClass(org.alfresco.event.sdk.model.v1.model.RepoEvent.class) @EnableConfigurationProperties(AlfrescoEventsProperties.class) public class AlfrescoEventsAutoConfiguration extends ObjectAuto-configurationfor Alfresco Event Java API.This auto-configuration defines the beans required to read the Alfresco JSON events from an ActiveMQ topic, transform that event from JSON to
RepoEventmaking use of theEventGenericTransformerand do up to two things:- Forward a Spring Integration
Messageto a publish-subscribe channel - Invoke the list of
EventHandlerregistered to handle the specific event type consumed from the topic
This way the integrator can configure the Alfresco Java Event API to consume the events using Spring Integration or plain Java event handlers.
- Forward a Spring Integration
-
-
Constructor Summary
Constructors Constructor Description AlfrescoEventsAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.integration.channel.PublishSubscribeChannelacsEventChannel()org.springframework.integration.channel.DirectChannelacsEventErrorChannel()com.fasterxml.jackson.databind.ObjectMapperacsEventObjectMapper()org.springframework.integration.dsl.IntegrationFlowacsEventsHandlersFlow()org.springframework.integration.dsl.IntegrationFlowacsEventsListeningFlow(org.apache.activemq.ActiveMQConnectionFactory activeMQConnectionFactory)org.springframework.integration.dsl.IntegrationFlowacsEventsSpringIntegrationFlow()javax.jms.TopicacsEventsTopic()org.springframework.integration.transformer.GenericTransformer<String,RepoEvent<DataAttributes<Resource>>>acsEventTransformer()EventHandlingExecutoreventHandlingExecutor()EventHandlingRegistryeventHandlingRegistry()
-
-
-
Method Detail
-
acsEventsListeningFlow
@Bean public org.springframework.integration.dsl.IntegrationFlow acsEventsListeningFlow(org.apache.activemq.ActiveMQConnectionFactory activeMQConnectionFactory)
-
acsEventsTopic
@Bean public javax.jms.Topic acsEventsTopic()
-
acsEventErrorChannel
@Bean(name="alfresco.events.error.channel") public org.springframework.integration.channel.DirectChannel acsEventErrorChannel()
-
acsEventTransformer
@Bean public org.springframework.integration.transformer.GenericTransformer<String,RepoEvent<DataAttributes<Resource>>> acsEventTransformer()
-
acsEventObjectMapper
@Bean public com.fasterxml.jackson.databind.ObjectMapper acsEventObjectMapper()
-
acsEventsSpringIntegrationFlow
@Bean public org.springframework.integration.dsl.IntegrationFlow acsEventsSpringIntegrationFlow()
-
acsEventChannel
@Bean(name="alfresco.events.main.channel") public org.springframework.integration.channel.PublishSubscribeChannel acsEventChannel()
-
acsEventsHandlersFlow
@Bean public org.springframework.integration.dsl.IntegrationFlow acsEventsHandlersFlow()
-
eventHandlingExecutor
@Bean public EventHandlingExecutor eventHandlingExecutor()
-
eventHandlingRegistry
@Bean public EventHandlingRegistry eventHandlingRegistry()
-
-