@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 |
|---|---|
com.google.cloud.datastore.testing.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 com.google.cloud.datastore.testing.LocalDatastoreHelper createDatastoreHelper(GcpDatastoreProperties datastoreProperties)
public void stop()
stop in interface org.springframework.context.Lifecyclepublic 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.Lifecyclepublic void start()
start in interface org.springframework.context.LifecycleCopyright © 2024. All rights reserved.