Skip to content

Commit eaed862

Browse files
authored
Merge pull request #1683 from akshaysonvane/update-javadocs
Updated javadocs
2 parents 9466fab + cff6c86 commit eaed862

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/HubConfig.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
import javax.net.ssl.SSLContext;
2727
import javax.net.ssl.X509TrustManager;
2828
import java.nio.file.Path;
29-
import java.util.Properties;
3029

3130
/**
32-
* An interface to set, manage and recall the Data Hub's Configuration
31+
* An interface to set, manage and recall the Data Hub's Configuration.
32+
* HubConfig has a singleton scope so set everything you want at the start of the application and
33+
* and then call {@link #refreshProject()} to wire up all clients and load the properties from gradle.properties
34+
* (optionally overridden with gradle-{env}.properties).
3335
*/
3436
@JsonDeserialize(as = HubConfigImpl.class)
3537
@JsonSerialize(as = HubConfigImpl.class)
@@ -535,8 +537,8 @@ public interface HubConfig {
535537
* In a non-Gradle environment, a client can use this to load properties from a "gradle-(environment).properties"
536538
* file, similar to how the Gradle properties plugin would process such a file in a Gradle context.
537539
*
538-
* @param environment
539-
* @return
540+
* @param environment - The name of the environment to use (local,dev,qa,prod,...)
541+
* @return A HubConfig
540542
*/
541543
HubConfig withPropertiesFromEnvironment(String environment);
542544

0 commit comments

Comments
 (0)