Package io.pivotal.cfenv.spring.boot
Interface CfServiceEnablingEnvironmentPostProcessor
- All Superinterfaces:
org.springframework.boot.env.EnvironmentPostProcessor
- All Known Implementing Classes:
CfDataSourceEnvironmentPostProcessor,CfEnvironmentPostProcessor
public interface CfServiceEnablingEnvironmentPostProcessor
extends org.springframework.boot.env.EnvironmentPostProcessor
Implementations can disable a service by setting a Spring boot property
cfenv.service.<serviceName>.enabled=false.- Author:
- David Turanski
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisEnabled(io.pivotal.cfenv.core.CfService service, Environment environment) Determine if a service is enabled.Methods inherited from interface org.springframework.boot.env.EnvironmentPostProcessor
postProcessEnvironment
-
Method Details
-
isEnabled
Determine if a service is enabled.- Parameters:
service- a service to inspect.environment- the Environment.- Returns:
trueif the service is enabled;falseotherwise
-