Class CachingSerializationSecurityConfigAccessor
- java.lang.Object
-
- com.atlassian.bamboo.agent.remote.serialization.CachingSerializationSecurityConfigAccessor
-
- All Implemented Interfaces:
SerializationSecurityConfigAccessor
public class CachingSerializationSecurityConfigAccessor extends Object implements SerializationSecurityConfigAccessor
Class returns default SerializationSecurityConfig until AgentRegisteredEvent appears, from that point administrationConfigurationAccessor is used to get this property.
-
-
Constructor Summary
Constructors Constructor Description CachingSerializationSecurityConfigAccessor(com.atlassian.event.api.EventPublisher eventPublisher, CachingAdministrationConfigurationAccessor administrationConfigurationAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull SerializationSecurityConfig
getSerializationSecurityConfig()
void
onAdministrationConfigurationUpdatedEvent(AdministrationConfigurationUpdatedEvent event)
void
onAgentRegisteredEvent(AgentRegisteredEvent event)
void
onNodePromotedToPrimary(NodePromotedEvent event)
-
-
-
Constructor Detail
-
CachingSerializationSecurityConfigAccessor
@Autowired public CachingSerializationSecurityConfigAccessor(com.atlassian.event.api.EventPublisher eventPublisher, CachingAdministrationConfigurationAccessor administrationConfigurationAccessor)
-
-
Method Detail
-
getSerializationSecurityConfig
@NotNull public @NotNull SerializationSecurityConfig getSerializationSecurityConfig()
- Specified by:
getSerializationSecurityConfig
in interfaceSerializationSecurityConfigAccessor
-
onAgentRegisteredEvent
@EventListener public void onAgentRegisteredEvent(AgentRegisteredEvent event)
-
onAdministrationConfigurationUpdatedEvent
@EventListener public void onAdministrationConfigurationUpdatedEvent(AdministrationConfigurationUpdatedEvent event)
-
onNodePromotedToPrimary
@EventListener public void onNodePromotedToPrimary(NodePromotedEvent event)
-
-