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
12574ecf
Commit
12574ecf
authored
May 05, 2021
by
neelesh thakur
Browse files
add @Lazy for event-grid factories, they are causing startup failures
parent
afac2399
Pipeline
#38691
passed with stages
in 10 minutes and 22 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
12574ecf
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<groupId>
org.opengroup.osdu
</groupId>
<groupId>
org.opengroup.osdu
</groupId>
<artifactId>
core-lib-azure
</artifactId>
<artifactId>
core-lib-azure
</artifactId>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
<version>
0.9.0-SNAPSHOT
</version>
<version>
0.9.0-SNAPSHOT
-partition
</version>
<name>
core-lib-azure
</name>
<name>
core-lib-azure
</name>
<properties>
<properties>
...
...
src/main/java/org/opengroup/osdu/azure/eventgrid/EventGridTopicClientFactoryImpl.java
View file @
12574ecf
...
@@ -25,12 +25,14 @@ import org.opengroup.osdu.core.common.partition.PartitionException;
...
@@ -25,12 +25,14 @@ import org.opengroup.osdu.core.common.partition.PartitionException;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
/**
/**
* Implementation for IEventGridTopicClientFactory.
* Implementation for IEventGridTopicClientFactory.
*/
*/
@Component
@Component
@Lazy
public
class
EventGridTopicClientFactoryImpl
implements
IEventGridTopicClientFactory
{
public
class
EventGridTopicClientFactoryImpl
implements
IEventGridTopicClientFactory
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
EventGridTopicClientFactoryImpl
.
class
.
getName
());
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
EventGridTopicClientFactoryImpl
.
class
.
getName
());
...
...
src/main/java/org/opengroup/osdu/azure/eventgrid/EventGridTopicStore.java
View file @
12574ecf
...
@@ -25,6 +25,7 @@ import org.opengroup.osdu.core.common.model.http.AppException;
...
@@ -25,6 +25,7 @@ import org.opengroup.osdu.core.common.model.http.AppException;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.net.URI
;
import
java.net.URI
;
...
@@ -57,6 +58,7 @@ import java.util.List;
...
@@ -57,6 +58,7 @@ import java.util.List;
* </pre>
* </pre>
*/
*/
@Component
@Component
@Lazy
public
class
EventGridTopicStore
{
public
class
EventGridTopicStore
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
CosmosStoreBulkOperations
.
class
.
getName
());
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
CosmosStoreBulkOperations
.
class
.
getName
());
...
...
src/main/java/org/opengroup/osdu/azure/eventgridmanager/EventGridManagerFactoryImpl.java
View file @
12574ecf
...
@@ -6,6 +6,7 @@ import org.opengroup.osdu.azure.partition.PartitionServiceClient;
...
@@ -6,6 +6,7 @@ import org.opengroup.osdu.azure.partition.PartitionServiceClient;
import
org.opengroup.osdu.azure.util.AzureTokenCredentialsService
;
import
org.opengroup.osdu.azure.util.AzureTokenCredentialsService
;
import
org.opengroup.osdu.common.Validators
;
import
org.opengroup.osdu.common.Validators
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
com.microsoft.azure.credentials.AzureTokenCredentials
;
import
com.microsoft.azure.credentials.AzureTokenCredentials
;
...
@@ -16,6 +17,7 @@ import com.microsoft.rest.LogLevel;
...
@@ -16,6 +17,7 @@ import com.microsoft.rest.LogLevel;
* Interface for Event Grid Manager Factory to return appropriate EventGridManager based on the data partition id.
* Interface for Event Grid Manager Factory to return appropriate EventGridManager based on the data partition id.
*/
*/
@Component
@Component
@Lazy
public
class
EventGridManagerFactoryImpl
implements
EventGridManagerFactory
{
public
class
EventGridManagerFactoryImpl
implements
EventGridManagerFactory
{
@Autowired
@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