Class GrpcMockApplicationListener

java.lang.Object
org.grpcmock.springboot.GrpcMockApplicationListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>

public class GrpcMockApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
Prepares environment for gRPC Mock and finds a free port if needed.
Author:
Fadelis
  • Constructor Details

    • GrpcMockApplicationListener

      public GrpcMockApplicationListener()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>