Class AasRegistrySpringApp
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.aasRegistry.AasRegistrySpringApp
@SpringBootApplication
@Configuration
@ComponentScan(basePackages={"org.eclipse.digitaltwin.basyx","de.iip_ecosphere.platform.support.aas.basyx2.server.apps.security"},
excludeFilters=)
@Component
public class AasRegistrySpringApp
extends Object
Spring application for starting an in-memory AAS 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.static org.eclipse.digitaltwin.basyx.aasregistry.service.storage.AasRegistryStorageReturns the AAS registry storage.static voidStarts the application.org.eclipse.digitaltwin.basyx.aasregistry.service.events.RegistryEventSinkReturns the AAS registry event sink.
-
Constructor Details
-
AasRegistrySpringApp
public AasRegistrySpringApp()
-
-
Method Details
-
main
Starts the application.- Parameters:
args- the command line arguments
-
getAasRegistry
@Bean public static org.eclipse.digitaltwin.basyx.aasregistry.service.storage.AasRegistryStorage getAasRegistry()Returns the AAS registry storage.- Returns:
- the storage instance
-
registryEventSink
@Bean public org.eclipse.digitaltwin.basyx.aasregistry.service.events.RegistryEventSink registryEventSink()Returns the AAS registry event sink.- Returns:
- the event sink 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
-