public class HubConfigBuilder
extends java.lang.Object
HubConfig hubConfig = HubConfigBuilder.newHubConfigBuilder("/path/to/your/project")
.withPropertiesFromEnvironment("local")
.build();
| Modifier and Type | Method and Description |
|---|---|
HubConfig |
build()
Builds the
HubConfig instance |
static HubConfigBuilder |
newHubConfigBuilder(java.lang.String projectDir)
Returns a new
HubConfigBuilder instance |
HubConfigBuilder |
withAdminConfig(com.marklogic.mgmt.admin.AdminConfig adminConfig)
Sets the
AdminConfig for the HubConfig |
HubConfigBuilder |
withAdminManager(com.marklogic.mgmt.admin.AdminManager adminManager)
Sets the
AdminManager for the HubConfig |
HubConfigBuilder |
withAppConfig(com.marklogic.appdeployer.AppConfig appConfig)
Sets the
AppConfig for the HubConfig |
HubConfigBuilder |
withManageClient(com.marklogic.mgmt.ManageClient manageClient)
Sets the
ManageClient for the HubConfig |
HubConfigBuilder |
withManageConfig(com.marklogic.mgmt.ManageConfig manageConfig)
Sets the
ManageConfig for the HubConfig |
HubConfigBuilder |
withProperties(java.util.Properties properties)
Tells the builder to use the given properties.
|
HubConfigBuilder |
withPropertiesFromEnvironment()
Tells the builder to load properties from the gradle files in the project dir
|
HubConfigBuilder |
withPropertiesFromEnvironment(java.lang.String environment)
Tells the builder to load properties from the gradle files in the project dir
but to look for an environment properties file with overrides
|
public static HubConfigBuilder newHubConfigBuilder(java.lang.String projectDir)
HubConfigBuilder instanceprojectDir - - the hub's project directoryHubConfigBuilderpublic HubConfigBuilder withPropertiesFromEnvironment()
HubConfigBuilder instancepublic HubConfigBuilder withPropertiesFromEnvironment(java.lang.String environment)
environment - - the name of the environment to use (local,dev,qa,prod,...)HubConfigBuilder instancepublic HubConfigBuilder withProperties(java.util.Properties properties)
properties - - A Properties object with properties setHubConfigBuilder instancepublic HubConfigBuilder withAppConfig(com.marklogic.appdeployer.AppConfig appConfig)
AppConfig for the HubConfigappConfig - - an AppConfig objectHubConfigBuilder instancepublic HubConfigBuilder withAdminConfig(com.marklogic.mgmt.admin.AdminConfig adminConfig)
AdminConfig for the HubConfigadminConfig - - an AdminConfig objectHubConfigBuilder instancepublic HubConfigBuilder withAdminManager(com.marklogic.mgmt.admin.AdminManager adminManager)
AdminManager for the HubConfigadminManager - - an AdminManager objectHubConfigBuilder instancepublic HubConfigBuilder withManageConfig(com.marklogic.mgmt.ManageConfig manageConfig)
ManageConfig for the HubConfigmanageConfig - - a ManageConfig objectHubConfigBuilder instancepublic HubConfigBuilder withManageClient(com.marklogic.mgmt.ManageClient manageClient)
ManageClient for the HubConfigmanageClient - - a ManageClientHubConfigBuilder instance