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 Type
    Method
    Description
    default boolean
    isEnabled(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

      default boolean isEnabled(io.pivotal.cfenv.core.CfService service, Environment environment)
      Determine if a service is enabled.
      Parameters:
      service - a service to inspect.
      environment - the Environment.
      Returns:
      true if the service is enabled; false otherwise