Skip to content

Commit

Permalink
Squashable commit; simplifies code
Browse files Browse the repository at this point in the history
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
  • Loading branch information
ljnelson committed Aug 15, 2023
1 parent 44e8e7d commit d108b24
Showing 1 changed file with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ private static void installAdps(AfterBeanDiscovery event, BeanManager bm, Annota
Set<Annotation> qualifiers = Set.of(qualifiersArray);

// AbstractAuthenticationDetailsProvider
if (isUnsatisfied(bm, new TypeAndQualifiers(AbstractAuthenticationDetailsProvider.class, qualifiersArray))) {
if (isUnsatisfied(bm, AbstractAuthenticationDetailsProvider.class, qualifiersArray)) {
Supplier<? extends AbstractAuthenticationDetailsProvider> s = ociAuthenticationProvider();
event.addBean()
.types(AbstractAuthenticationDetailsProvider.class)
Expand All @@ -847,8 +847,7 @@ private static void installAdps(AfterBeanDiscovery event, BeanManager bm, Annota
}

// BasicAuthenticationDetailsProvider
if (isUnsatisfied(bm,
new TypeAndQualifiers(BasicAuthenticationDetailsProvider.class, qualifiersArray))) {
if (isUnsatisfied(bm, BasicAuthenticationDetailsProvider.class, qualifiersArray)) {
Supplier<? extends AbstractAuthenticationDetailsProvider> s = ociAuthenticationProvider();
event.addBean()
.types(BasicAuthenticationDetailsProvider.class)
Expand All @@ -859,16 +858,14 @@ private static void installAdps(AfterBeanDiscovery event, BeanManager bm, Annota
}

// InstancePrincipalsAuthenticationDetailsProvider
if (isUnsatisfied(bm,
new TypeAndQualifiers(InstancePrincipalsAuthenticationDetailsProviderBuilder.class, qualifiersArray))) {
if (isUnsatisfied(bm, InstancePrincipalsAuthenticationDetailsProviderBuilder.class, qualifiersArray)) {
event.addBean()
.types(InstancePrincipalsAuthenticationDetailsProviderBuilder.class)
.qualifiers(qualifiers)
.scope(Singleton.class)
.produceWith(i -> fire(i, InstancePrincipalsAuthenticationDetailsProvider.builder(), qualifiersArray));
}
if (isUnsatisfied(bm,
new TypeAndQualifiers(InstancePrincipalsAuthenticationDetailsProvider.class, qualifiersArray))) {
if (isUnsatisfied(bm, InstancePrincipalsAuthenticationDetailsProvider.class, qualifiersArray)) {
event.addBean()
.types(InstancePrincipalsAuthenticationDetailsProvider.class)
.qualifiers(qualifiers)
Expand All @@ -881,16 +878,14 @@ private static void installAdps(AfterBeanDiscovery event, BeanManager bm, Annota
}

// ResourcePrincipalAuthenticationDetailsProvider
if (isUnsatisfied(bm,
new TypeAndQualifiers(ResourcePrincipalAuthenticationDetailsProviderBuilder.class, qualifiersArray))) {
if (isUnsatisfied(bm, ResourcePrincipalAuthenticationDetailsProviderBuilder.class, qualifiersArray)) {
event.addBean()
.types(ResourcePrincipalAuthenticationDetailsProviderBuilder.class)
.qualifiers(qualifiers)
.scope(Singleton.class)
.produceWith(i -> fire(i, ResourcePrincipalAuthenticationDetailsProvider.builder(), qualifiersArray));
}
if (isUnsatisfied(bm,
new TypeAndQualifiers(ResourcePrincipalAuthenticationDetailsProvider.class, qualifiersArray))) {
if (isUnsatisfied(bm, ResourcePrincipalAuthenticationDetailsProvider.class, qualifiersArray)) {
event.addBean()
.types(ResourcePrincipalAuthenticationDetailsProvider.class)
.qualifiers(qualifiers)
Expand All @@ -903,14 +898,14 @@ private static void installAdps(AfterBeanDiscovery event, BeanManager bm, Annota
}

// SimpleAuthenticationDetailsProvider
if (isUnsatisfied(bm, new TypeAndQualifiers(SimpleAuthenticationDetailsProviderBuilder.class, qualifiersArray))) {
if (isUnsatisfied(bm, SimpleAuthenticationDetailsProviderBuilder.class, qualifiersArray)) {
event.addBean()
.types(SimpleAuthenticationDetailsProviderBuilder.class)
.qualifiers(qualifiers)
.scope(Singleton.class)
.produceWith(i -> fire(i, SimpleAuthenticationDetailsProvider.builder(), qualifiersArray));
}
if (isUnsatisfied(bm, new TypeAndQualifiers(SimpleAuthenticationDetailsProvider.class, qualifiersArray))) {
if (isUnsatisfied(bm, SimpleAuthenticationDetailsProvider.class, qualifiersArray)) {
event.addBean()
.types(SimpleAuthenticationDetailsProvider.class)
.qualifiers(qualifiers)
Expand Down

0 comments on commit d108b24

Please sign in to comment.