Package org.grpcmock.springboot
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 Summary
Constructors Constructor Description GrpcMockApplicationListener() -
Method Summary
Modifier and Type Method Description voidonApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event)
-
Constructor Details
-
GrpcMockApplicationListener
public GrpcMockApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event)- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
-