-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d30232
commit 12580ed
Showing
3 changed files
with
16 additions
and
35 deletions.
There are no files selected for viewing
17 changes: 16 additions & 1 deletion
17
...es-core/src/main/java/org/kinotic/structures/internal/config/StructuresConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
package org.kinotic.structures.internal.config; | ||
|
||
import io.vertx.core.Vertx; | ||
import io.vertx.ext.healthchecks.HealthChecks; | ||
import org.kinotic.structures.api.services.security.AuthorizationServiceFactory; | ||
import org.kinotic.structures.internal.api.services.impl.security.NoopAuthorizationServiceFactory; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* Enables component scanning for structures classes when {@link org.kinotic.continuum.api.annotations.EnableContinuum} is present | ||
* NOTE: do not define any beans here, since they should not be loaded first necessarily | ||
* Created by Navíd Mitchell 🤪 on 5/30/23. | ||
*/ | ||
@Configuration | ||
@EnableConfigurationProperties | ||
@ComponentScan(basePackages = "org.kinotic.structures") | ||
public class StructuresConfiguration { | ||
|
||
@Bean | ||
public HealthChecks healthChecks(Vertx vertx){ | ||
return HealthChecks.create(vertx); | ||
} | ||
|
||
@Bean | ||
@ConditionalOnMissingBean | ||
public AuthorizationServiceFactory authorizationServiceFactory(){ | ||
return new NoopAuthorizationServiceFactory(); | ||
} | ||
|
||
} |
17 changes: 0 additions & 17 deletions
17
...ore/src/main/java/org/kinotic/structures/internal/config/StructuresHealthCheckConfig.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...s-core/src/main/java/org/kinotic/structures/internal/config/StructuresSecurityConfig.java
This file was deleted.
Oops, something went wrong.