public class HubConfigBuilderImpl extends java.lang.Object implements HubConfigBuilder
HubConfig hubConfig = HubConfigBuilder.newHubConfigBuilder("/path/to/your/project")
.withPropertiesFromEnvironment("local")
.build();
Constructor and Description |
---|
HubConfigBuilderImpl(java.lang.String projectDir) |
Modifier and Type | Method and Description |
---|---|
HubConfig |
build()
Builds the
HubConfig 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newHubConfigBuilder
public HubConfigBuilder withPropertiesFromEnvironment()
HubConfigBuilder
withPropertiesFromEnvironment
in interface HubConfigBuilder
HubConfigBuilder
instancepublic HubConfigBuilder withPropertiesFromEnvironment(java.lang.String environment)
HubConfigBuilder
withPropertiesFromEnvironment
in interface HubConfigBuilder
environment
- - the name of the environment to use (local,dev,qa,prod,...)HubConfigBuilder
instancepublic HubConfigBuilder withProperties(java.util.Properties properties)
HubConfigBuilder
withProperties
in interface HubConfigBuilder
properties
- - A Properties
object with properties setHubConfigBuilder
instancepublic HubConfigBuilder withAppConfig(com.marklogic.appdeployer.AppConfig appConfig)
HubConfigBuilder
AppConfig
for the HubConfig
withAppConfig
in interface HubConfigBuilder
appConfig
- - an AppConfig
objectHubConfigBuilder
instancepublic HubConfigBuilder withAdminConfig(com.marklogic.mgmt.admin.AdminConfig adminConfig)
HubConfigBuilder
AdminConfig
for the HubConfig
withAdminConfig
in interface HubConfigBuilder
adminConfig
- - an AdminConfig
objectHubConfigBuilder
instancepublic HubConfigBuilder withAdminManager(com.marklogic.mgmt.admin.AdminManager adminManager)
HubConfigBuilder
AdminManager
for the HubConfig
withAdminManager
in interface HubConfigBuilder
adminManager
- - an AdminManager
objectHubConfigBuilder
instancepublic HubConfigBuilder withManageConfig(com.marklogic.mgmt.ManageConfig manageConfig)
HubConfigBuilder
ManageConfig
for the HubConfig
withManageConfig
in interface HubConfigBuilder
manageConfig
- - a ManageConfig
objectHubConfigBuilder
instancepublic HubConfigBuilder withManageClient(com.marklogic.mgmt.ManageClient manageClient)
HubConfigBuilder
ManageClient
for the HubConfig
withManageClient
in interface HubConfigBuilder
manageClient
- - a ManageClient
HubConfigBuilder
instancepublic HubConfig build()
HubConfigBuilder
HubConfig
instancebuild
in interface HubConfigBuilder
HubConfig