Convert public services to OSGi DS 28/104328/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Feb 2023 20:12:13 +0000 (21:12 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Feb 2023 21:28:35 +0000 (22:28 +0100)
commit94b42c4dba62a0e1f56a455ca60f51dadc60bcae
tree3cbaa62af1beba1755546b6940dadc31b6dc53c0
parent23debbd799d224a9a2dc31fb8404a347c62156ec
Convert public services to OSGi DS

In order to unblock users, convert ODLAuthenticator and
ShiroWebContextSecurer into Declarative Services components.

Since we still rely on blueprint to pick up configuration and aaa-cert
services, bridge these two worlds by publishing WebEnvironment via an
implementation-specific AAAShiroWebEnvironment.

This also forces WebInitializer to be a proper component, as otherwise
we would have a circular dependency its WebContextSecurer dependency.

Since not all our services are SCR components, we need to explictly list
out our Provide-Capability entries.

JIRA: AAA-251
Change-Id: Ia5a0d28e10d7597a9c5fe90c3cf084c25da652a9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-shiro/impl/pom.xml
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/authenticator/ODLAuthenticator.java
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/web/env/AAAShiroWebEnvironment.java [new file with mode: 0644]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/web/env/AAAWebEnvironment.java
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/web/env/ShiroWebContextSecurer.java
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/web/env/WebInitializer.java
aaa-shiro/impl/src/main/resources/OSGI-INF/blueprint/impl-blueprint.xml