@Configuration
@EnableConfigurationProperties(value={HttpClientProperties.class,InstanceInfoProperties.class})
public class LifecycleEventsConfiguration
extends java.lang.Object
Startup event contains information about instance and their configuration, shutdown event include same information
without configuration. Events creates with EventFactory instances. Each of them has qualifier and can be
autowired in other part of context.
All configuration can be excluded from context with property org.ametiste.scm.messaging.sender.enabled set to false.
| Constructor and Description |
|---|
LifecycleEventsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.ametiste.scm.messaging.sender.EventSender |
eventSender() |
org.apache.http.client.HttpClient |
eventSenderHttpClient() |
org.ametiste.scm.messaging.sender.client.environment.AppPropertiesAggregator |
propertiesAggregator() |
org.ametiste.scm.messaging.sender.client.event.EventFactory |
shutdownEventFactory() |
org.ametiste.scm.messaging.sender.client.event.EventFactory |
startupEventFactory() |
@Bean public org.apache.http.client.HttpClient eventSenderHttpClient()
@Bean public org.ametiste.scm.messaging.sender.EventSender eventSender()
@Bean public org.ametiste.scm.messaging.sender.client.environment.AppPropertiesAggregator propertiesAggregator()
@Bean
@Qualifier(value="startupEventFactory")
public org.ametiste.scm.messaging.sender.client.event.EventFactory startupEventFactory()
throws java.net.URISyntaxException
java.net.URISyntaxException@Bean
@Qualifier(value="shutdownEventFactory")
public org.ametiste.scm.messaging.sender.client.event.EventFactory shutdownEventFactory()
throws java.net.URISyntaxException
java.net.URISyntaxException