Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
7642383d
Commit
7642383d
authored
May 06, 2021
by
neelesh thakur
Browse files
use configuration properties instead of @Lazy
parent
5babb1f9
Pipeline
#38843
passed with stages
in 11 minutes and 1 second
Changes
5
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
7642383d
...
...
@@ -20,7 +20,7 @@
<groupId>
org.opengroup.osdu
</groupId>
<artifactId>
core-lib-azure
</artifactId>
<packaging>
jar
</packaging>
<version>
0.9.0-SNAPSHOT
</version>
<version>
0.9.0-SNAPSHOT
-partition
</version>
<name>
core-lib-azure
</name>
<properties>
...
...
src/main/java/org/opengroup/osdu/azure/cryptography/CryptographyClientFactoryImpl.java
View file @
7642383d
...
...
@@ -5,7 +5,7 @@ import org.opengroup.osdu.azure.partition.PartitionInfoAzure;
import
org.opengroup.osdu.azure.partition.PartitionServiceClient
;
import
org.opengroup.osdu.common.Validators
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.
context.annotation.Laz
y
;
import
org.springframework.
boot.autoconfigure.condition.ConditionalOnPropert
y
;
import
org.springframework.stereotype.Component
;
import
com.azure.identity.DefaultAzureCredentialBuilder
;
...
...
@@ -16,7 +16,7 @@ import com.azure.security.keyvault.keys.cryptography.CryptographyClientBuilder;
* Implementation for CryptographyClientFactory.
*/
@Component
@
Lazy
@
ConditionalOnProperty
(
value
=
"service.cryptography.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
public
class
CryptographyClientFactoryImpl
implements
CryptographyClientFactory
{
@Autowired
...
...
src/main/java/org/opengroup/osdu/azure/eventgrid/EventGridTopicClientFactoryImpl.java
View file @
7642383d
...
...
@@ -25,14 +25,14 @@ import org.opengroup.osdu.core.common.partition.PartitionException;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.
context.annotation.Laz
y
;
import
org.springframework.
boot.autoconfigure.condition.ConditionalOnPropert
y
;
import
org.springframework.stereotype.Component
;
/**
* Implementation for IEventGridTopicClientFactory.
*/
@Component
@
Lazy
@
ConditionalOnProperty
(
value
=
"service.eventgrid.topic.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
public
class
EventGridTopicClientFactoryImpl
implements
IEventGridTopicClientFactory
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
EventGridTopicClientFactoryImpl
.
class
.
getName
());
...
...
src/main/java/org/opengroup/osdu/azure/eventgrid/EventGridTopicStore.java
View file @
7642383d
...
...
@@ -25,7 +25,7 @@ import org.opengroup.osdu.core.common.model.http.AppException;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.
context.annotation.Laz
y
;
import
org.springframework.
boot.autoconfigure.condition.ConditionalOnPropert
y
;
import
org.springframework.stereotype.Component
;
import
java.net.URI
;
...
...
@@ -58,7 +58,7 @@ import java.util.List;
* </pre>
*/
@Component
@
Lazy
@
ConditionalOnProperty
(
value
=
"service.eventgrid.topic.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
public
class
EventGridTopicStore
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
CosmosStoreBulkOperations
.
class
.
getName
());
...
...
src/main/java/org/opengroup/osdu/azure/eventgridmanager/EventGridManagerFactoryImpl.java
View file @
7642383d
...
...
@@ -6,7 +6,7 @@ import org.opengroup.osdu.azure.partition.PartitionServiceClient;
import
org.opengroup.osdu.azure.util.AzureTokenCredentialsService
;
import
org.opengroup.osdu.common.Validators
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.
context.annotation.Laz
y
;
import
org.springframework.
boot.autoconfigure.condition.ConditionalOnPropert
y
;
import
org.springframework.stereotype.Component
;
import
com.microsoft.azure.credentials.AzureTokenCredentials
;
...
...
@@ -17,7 +17,7 @@ import com.microsoft.rest.LogLevel;
* Interface for Event Grid Manager Factory to return appropriate EventGridManager based on the data partition id.
*/
@Component
@
Lazy
@
ConditionalOnProperty
(
value
=
"service.eventgrid.manager.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
public
class
EventGridManagerFactoryImpl
implements
EventGridManagerFactory
{
@Autowired
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment