Package io.pivotal.cfenv.core
Class CfEnv
java.lang.Object
io.pivotal.cfenv.core.CfEnv
Provides access to Cloud Foundry environment variables.
- Author:
- Mark Pollack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCredentialsByLabel(String... spec) findCredentialsByName(String... spec) findCredentialsByTag(String... spec) findServiceByLabel(String... spec) findServiceByName(String... spec) findServiceByTag(String... spec) findServicesByLabel(String... spec) findServicesByName(String... spec) findServicesByTag(String... spec) getApp()booleanisInCf()Checks that the value of the environment variable VCAP_APPLICATION is not null, usually indicating that this application is running inside of Cloud Foundry
-
Constructor Details
-
CfEnv
public CfEnv() -
CfEnv
-
-
Method Details
-
getApp
-
findAllServices
-
findServicesByName
-
findServiceByName
-
findServicesByLabel
-
findServiceByLabel
-
findServiceByTag
-
findServicesByTag
-
findCredentialsByName
-
findCredentialsByLabel
-
findCredentialsByTag
-
isInCf
public boolean isInCf()Checks that the value of the environment variable VCAP_APPLICATION is not null, usually indicating that this application is running inside of Cloud Foundry- Returns:
trueif the environment variable VCAP_APPLICATION is not null,falseotherwise.
-