@Configuration(proxyBeanMethods=false) @ConditionalOnProperty(value="spring.cloud.gcp.datastore.emulator.enabled") @AutoConfigureBefore(value=GcpDatastoreAutoConfiguration.class) @EnableConfigurationProperties(value=GcpDatastoreProperties.class) @ConditionalOnMissingBean(value=com.google.cloud.datastore.testing.LocalDatastoreHelper.class) public class GcpDatastoreEmulatorAutoConfiguration extends Object implements org.springframework.context.SmartLifecycle
LocalDatastoreHelper
.Constructor and Description |
---|
GcpDatastoreEmulatorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
LocalDatastoreHelper |
createDatastoreHelper(GcpDatastoreProperties datastoreProperties) |
boolean |
isRunning()
Checks if the instance is running.
|
void |
start()
Starts the instance of the emulator.
|
void |
stop()
Stops the instance of the emulator.
|
public GcpDatastoreEmulatorAutoConfiguration()
@Bean public LocalDatastoreHelper createDatastoreHelper(GcpDatastoreProperties datastoreProperties)
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
true
after a successful
execution of the method start()
and false
after a successful
execution of the method stop()
. method is called.isRunning
in interface org.springframework.context.Lifecycle
public void start()
start
in interface org.springframework.context.Lifecycle
Copyright © 2021. All rights reserved.