Class AasRepositorySpringApp
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.aasRepository.AasRepositorySpringApp
@SpringBootApplication
@Configuration
@ComponentScan(basePackages={"org.eclipse.digitaltwin.basyx","de.iip_ecosphere.platform.support.aas.basyx2.server.apps.security"},
excludeFilters=)
public class AasRepositorySpringApp
extends Object
Spring application running an AAS repository.
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.aasservice.backend.AasBackendReturns the AAS backend instance.static org.eclipse.digitaltwin.basyx.aasrepository.AasRepositorygetAasRepository(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor authDesc) Returns the AAS repository instance.static org.eclipse.digitaltwin.basyx.aasservice.AasServiceFactoryReturns the AAS service factory instance.static org.eclipse.digitaltwin.basyx.core.filerepository.FileRepositoryReturns the file repository instance.static voidStarts the application.
-
Constructor Details
-
AasRepositorySpringApp
public AasRepositorySpringApp()
-
-
Method Details
-
main
Starts the application.- Parameters:
args- the command line arguments
-
getAasRepository
@Bean public static org.eclipse.digitaltwin.basyx.aasrepository.AasRepository getAasRepository(@Nullable de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor authDesc) Returns the AAS repository instance.- Parameters:
authDesc- the actual authentication descriptor- Returns:
- the AAS repository
-
getAasServiceFactory
@Bean public static org.eclipse.digitaltwin.basyx.aasservice.AasServiceFactory getAasServiceFactory()Returns the AAS service factory instance.- Returns:
- the AAS service factory
-
getAasBackend
@Bean public static org.eclipse.digitaltwin.basyx.aasservice.backend.AasBackend getAasBackend()Returns the AAS backend instance.- Returns:
- the AAS backend instance
-
getFileRepository
@Bean public static org.eclipse.digitaltwin.basyx.core.filerepository.FileRepository getFileRepository()Returns the file repository instance.- Returns:
- the file repository 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
-