forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mae-consumer): fix aspect retriever injections mae-consumer (data…
- Loading branch information
1 parent
f142efc
commit d870ef3
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...ta-jobs/mae-consumer-job/src/main/java/com/linkedin/metadata/kafka/MaeConsumerConfig.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.linkedin.metadata.kafka; | ||
|
||
import com.linkedin.metadata.aspect.AspectRetriever; | ||
import com.linkedin.metadata.search.EntitySearchService; | ||
import javax.annotation.PostConstruct; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.beans.factory.annotation.Qualifier; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class MaeConsumerConfig { | ||
|
||
@Autowired | ||
@Qualifier("cachingAspectRetriever") | ||
private AspectRetriever aspectRetriever; | ||
|
||
@Autowired private EntitySearchService entitySearchService; | ||
|
||
@PostConstruct | ||
protected void postConstruct() { | ||
entitySearchService.postConstruct(aspectRetriever); | ||
} | ||
} |
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