Package dev.restate.sdk.springboot
Class RestateEndpointConfiguration
java.lang.Object
dev.restate.sdk.springboot.RestateEndpointConfiguration
@Configuration
@EnableConfigurationProperties({RestateEndpointProperties.class,RestateComponentsProperties.class})
public class RestateEndpointConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureService(ServiceDefinition.Configurator configurator, RestateComponentProperties properties) Applies the configuration fromRestateComponentPropertiesto aServiceDefinition.Configurator.@Nullable EndpointrestateEndpoint(org.springframework.context.ApplicationContext applicationContext, RestateEndpointProperties restateEndpointProperties, RestateComponentsProperties restateComponentsProperties)
-
Constructor Details
-
RestateEndpointConfiguration
public RestateEndpointConfiguration()
-
-
Method Details
-
restateEndpoint
@Bean public @Nullable Endpoint restateEndpoint(org.springframework.context.ApplicationContext applicationContext, RestateEndpointProperties restateEndpointProperties, RestateComponentsProperties restateComponentsProperties) -
configureService
public static void configureService(ServiceDefinition.Configurator configurator, RestateComponentProperties properties) Applies the configuration fromRestateComponentPropertiesto aServiceDefinition.Configurator.- Parameters:
configurator- the service configurator to configureproperties- the properties to apply
-