public class EndpointEnablementProvider extends Object
Environment
.Constructor and Description |
---|
EndpointEnablementProvider(org.springframework.core.env.Environment environment)
Creates a new instance with the
Environment to use. |
Modifier and Type | Method and Description |
---|---|
EndpointEnablement |
getEndpointEnablement(String endpointId,
DefaultEnablement defaultEnablement)
Return the
EndpointEnablement of an endpoint with no specific tech
exposure. |
EndpointEnablement |
getEndpointEnablement(String endpointId,
DefaultEnablement defaultEnablement,
EndpointExposure exposure)
Return the
EndpointEnablement of an endpoint for a specific tech exposure. |
public EndpointEnablementProvider(org.springframework.core.env.Environment environment)
Environment
to use.environment
- the environmentpublic EndpointEnablement getEndpointEnablement(String endpointId, DefaultEnablement defaultEnablement)
EndpointEnablement
of an endpoint with no specific tech
exposure.endpointId
- the id of the endpointdefaultEnablement
- the DefaultEnablement
of the endpointEndpointEnablement
of that endpointpublic EndpointEnablement getEndpointEnablement(String endpointId, DefaultEnablement defaultEnablement, EndpointExposure exposure)
EndpointEnablement
of an endpoint for a specific tech exposure.endpointId
- the id of the endpointdefaultEnablement
- the DefaultEnablement
of the endpointexposure
- the requested EndpointExposure
EndpointEnablement
of that endpoint for the specified
EndpointExposure
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.