Class SubmodelRegistrySpringApp
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.submodelRegistry.SubmodelRegistrySpringApp
@SpringBootApplication
@Configuration
@ComponentScan(basePackages={"org.eclipse.digitaltwin.basyx","de.iip_ecosphere.platform.support.aas.basyx2.server.apps.security"},
excludeFilters=)
@Component
public class SubmodelRegistrySpringApp
extends Object
Spring application for starting an in-memory submodel registry.
Somehow feature-based composition does not work in here. More investigation needed.
- Author:
- Monika Staciwa, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChainfilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Defines the security filter chain.org.eclipse.digitaltwin.basyx.submodelregistry.service.api.LocationBuilderReturns the location builder.static voidStarts the application.org.eclipse.digitaltwin.basyx.submodelregistry.service.events.RegistryEventSinkReturns the event sink.org.springframework.http.converter.json.MappingJackson2HttpMessageConverterReturns the message converter.org.eclipse.digitaltwin.basyx.submodelregistry.service.storage.SubmodelRegistryStorageReturns the AAS registry storage.
-
Constructor Details
-
SubmodelRegistrySpringApp
public SubmodelRegistrySpringApp()
-
-
Method Details
-
main
Starts the application.- Parameters:
args- the command line arguments
-
submodelRegistryStorage
@Bean public org.eclipse.digitaltwin.basyx.submodelregistry.service.storage.SubmodelRegistryStorage submodelRegistryStorage()Returns the AAS registry storage.- Returns:
- the storage instance
-
registryEventSink
@Bean public org.eclipse.digitaltwin.basyx.submodelregistry.service.events.RegistryEventSink registryEventSink()Returns the event sink.- Returns:
- the event sink
-
submodelRegistryMappingJackson2HttpMessageConverter
@Bean public org.springframework.http.converter.json.MappingJackson2HttpMessageConverter submodelRegistryMappingJackson2HttpMessageConverter()Returns the message converter.- Returns:
- the message converter
-
locationBuilder
@Bean public org.eclipse.digitaltwin.basyx.submodelregistry.service.api.LocationBuilder locationBuilder()Returns the location builder.- Returns:
- the location builder instance
-
filterChain
@Profile("test") @Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Defines the security filter chain.- Parameters:
http- the security instance- Returns:
- the filterchain
- Throws:
Exception- if something fails
-