Skip to content

Commit

Permalink
template
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-jalgaonkar committed Jul 23, 2024
1 parent 01602ba commit 02c8946
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.flipkart.grpc.jexpress.filter;


import com.flipkart.gjex.core.filter.grpc.GjexGrpcFilter;
import com.flipkart.gjex.core.filter.grpc.GrpcFilter;
import com.flipkart.grpc.jexpress.CreateRequest;
import com.flipkart.grpc.jexpress.CreateResponse;
import com.flipkart.grpc.jexpress.GetRequest;
Expand All @@ -29,11 +29,11 @@
import javax.inject.Named;

@Named("CreateLoggingFilter")
public class CreateLoggingFilter<CreateRequest extends GeneratedMessageV3,CreateResponse extends GeneratedMessageV3> extends GjexGrpcFilter<CreateRequest,
public class CreateLoggingFilter<CreateRequest extends GeneratedMessageV3,CreateResponse extends GeneratedMessageV3> extends GrpcFilter<CreateRequest,
CreateResponse> {

@Override
public GjexGrpcFilter<CreateRequest,CreateResponse> getInstance(){
public GrpcFilter<CreateRequest,CreateResponse> getInstance(){
return new CreateLoggingFilter<CreateRequest,CreateResponse>();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.flipkart.grpc.jexpress.filter;

import com.flipkart.gjex.core.filter.grpc.GjexGrpcFilter;
import com.flipkart.gjex.core.filter.grpc.GrpcFilter;
import com.flipkart.grpc.jexpress.GetRequest;
import com.flipkart.grpc.jexpress.GetResponse;
import com.google.protobuf.GeneratedMessageV3;
Expand All @@ -27,12 +27,12 @@

@Named("GetLoggingFilter")
public class GetLoggingFilter<GetRequest extends GeneratedMessageV3,
GetResponse extends GeneratedMessageV3> extends GjexGrpcFilter<GetRequest, GetResponse> {
GetResponse extends GeneratedMessageV3> extends GrpcFilter<GetRequest, GetResponse> {

public GetLoggingFilter(){}

@Override
public GjexGrpcFilter<GetRequest,GetResponse> getInstance(){
public GrpcFilter<GetRequest,GetResponse> getInstance(){
return new GetLoggingFilter<GetRequest,GetResponse>();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.flipkart.grpc.jexpress.module;

import io.dropwizard.metrics5.health.HealthCheck;
import com.flipkart.gjex.core.filter.GjexFilter;
import com.flipkart.gjex.core.filter.Filter;
import com.flipkart.gjex.core.tracing.TracingSampler;
import com.flipkart.grpc.jexpress.filter.CreateLoggingFilter;
import com.flipkart.grpc.jexpress.filter.GetLoggingFilter;
Expand All @@ -11,15 +11,15 @@
import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
import io.grpc.BindableService;
import com.flipkart.gjex.core.filter.grpc.GjexGrpcFilter;
import com.flipkart.gjex.core.filter.grpc.GrpcFilter;

public class SampleModule extends AbstractModule {
@Override
protected void configure() {
bind(BindableService.class).annotatedWith(Names.named("SampleService")).to(SampleService.class);
bind(HealthCheck.class).to(AllIsWellHealthCheck.class);
bind(GjexGrpcFilter.class).annotatedWith(Names.named("GetLoggingFilter")).to(GetLoggingFilter.class);
bind(GjexGrpcFilter.class).annotatedWith(Names.named("CreateLoggingFilter")).to(CreateLoggingFilter.class);
bind(GrpcFilter.class).annotatedWith(Names.named("GetLoggingFilter")).to(GetLoggingFilter.class);
bind(GrpcFilter.class).annotatedWith(Names.named("CreateLoggingFilter")).to(CreateLoggingFilter.class);
bind(TracingSampler.class).to(AllWhitelistTracingSampler.class);
}
}

0 comments on commit 02c8946

Please sign in to comment.