Skip to content

Commit

Permalink
testing lambda registry manually
Browse files Browse the repository at this point in the history
  • Loading branch information
alx652 committed Mar 14, 2024
1 parent 72ae6f9 commit 08adffe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,15 @@ public void onApplicationEvent(ContextRefreshedEvent event) {

instance = this;
}
public void printData() {

if(this.subURIparsers.get() != null && !this.subURIparsers.get().isEmpty()) {
System.out.println("LambdaParseRegistry.subURIparsers is NOT null or empty.");
System.out.println(this.subURIparsers.get().toString());
} else {
System.out.println("LambdaParseRegistry.subURIparsers IS null or empty.");
}
}
private List<? extends RegisteredFunctionConfig> loadRegisteredFunctionsFromConfiguration() {
String reportTag = "RegisteredFunctionConfig";
ObjectMapper mapper = new ObjectMapper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import gsrs.buildInfo.BuildInfo;
import gsrs.buildInfo.BuildInfoFetcher;
import ix.core.util.pojopointer.LambdaParseRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -11,12 +12,19 @@

@RestController
public class BuildInfoController {
@Autowired

// private LambdaParseRegistry lambdaParseRegistry;
// @Autowired

@Autowired
private BuildInfoFetcher buildInfoFetcher;

@GetMapping("/api/v1/buildInfo")
public BuildInfo getBuildInfo(){
// lambdaParseRegistry.printData();
return buildInfoFetcher.getBuildInfo();
}



}

0 comments on commit 08adffe

Please sign in to comment.