Skip to content

Commit

Permalink
Merge pull request #174 from xenit-eu/remove-deprecated-app-metadata
Browse files Browse the repository at this point in the history
Remove deprecated/unused ContentGridApplicationMetadata
  • Loading branch information
tgeens authored Aug 21, 2023
2 parents ac952ef + 658b7dc commit df8b281
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
import static com.contentgrid.gateway.runtime.web.ContentGridAppRequestWebFilter.CONTENTGRID_WEB_FILTER_CHAIN_FILTER_ORDER;

import com.contentgrid.gateway.ServiceDiscoveryProperties;
import com.contentgrid.gateway.runtime.application.ContentGridApplicationMetadata;
import com.contentgrid.gateway.runtime.application.ContentGridDeploymentMetadata;
import com.contentgrid.gateway.runtime.application.ServiceCatalog;
import com.contentgrid.gateway.runtime.application.SimpleContentGridApplicationMetadata;
import com.contentgrid.gateway.runtime.application.SimpleContentGridDeploymentMetadata;
import com.contentgrid.gateway.runtime.config.ApplicationConfigurationRepository;
import com.contentgrid.gateway.runtime.config.ComposableApplicationConfigurationRepository;
Expand Down Expand Up @@ -40,7 +38,6 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.cors.reactive.CorsConfigurationSource;
import org.springframework.web.server.ServerWebExchange;

Expand All @@ -61,11 +58,6 @@ ContentGridDeploymentMetadata deploymentMetadata() {
return new SimpleContentGridDeploymentMetadata();
}

@Bean
ContentGridApplicationMetadata applicationMetadata(ContentGridDeploymentMetadata deploymentMetadata) {
return new SimpleContentGridApplicationMetadata(deploymentMetadata);
}

@Bean
RuntimeRequestResolver runtimeRequestResolver() {
return new DefaultRuntimeRequestResolver();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

import com.contentgrid.gateway.runtime.ServiceInstanceStubs;
import com.contentgrid.gateway.runtime.application.ApplicationId;
import com.contentgrid.gateway.runtime.application.ContentGridApplicationMetadata;
import com.contentgrid.gateway.runtime.application.DeploymentId;
import com.contentgrid.gateway.runtime.application.ServiceCatalog;
import com.contentgrid.gateway.runtime.application.SimpleContentGridApplicationMetadata;
import com.contentgrid.gateway.runtime.application.SimpleContentGridDeploymentMetadata;
import com.contentgrid.gateway.runtime.config.ApplicationConfiguration.Keys;
import com.contentgrid.gateway.runtime.config.ApplicationConfigurationFragment;
Expand All @@ -21,15 +19,13 @@

class SimpleRuntimeRequestRouterTest {

protected ContentGridApplicationMetadata applicationMetadata;
protected ComposableApplicationConfigurationRepository appConfigRepo;
protected ServiceCatalog serviceCatalog;
protected RuntimeRequestRouter requestRouter;

@BeforeEach
void setup() {
var deployMetadata = new SimpleContentGridDeploymentMetadata();
this.applicationMetadata = new SimpleContentGridApplicationMetadata(deployMetadata);
this.appConfigRepo = new ComposableApplicationConfigurationRepository();
this.serviceCatalog = new ServiceCatalog(event -> { }, deployMetadata, appConfigRepo);
this.requestRouter = new SimpleRuntimeRequestRouter(this.serviceCatalog, deployMetadata, appConfigRepo);
Expand Down

0 comments on commit df8b281

Please sign in to comment.