public final class NexusCoreUtil extends Object
| Constructor and Description |
|---|
NexusCoreUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initServices(String artifactId,
Class<?> mainClass)
It initiates the service layer by the Maven module's artifact id and by its primary class.
|
static boolean |
isAllowInternalProperties()
It retrieves that system properties can be injected through Java instead of nexus.properties file.
|
static void |
removeServices()
It disables the Nexus' service layer and the main configuration.
|
static void |
setProperties(Map<String,String> propertiesMap)
When NexusCoreUtil.allowInternalProperties is true then the settings of properties is possible by this
method.
|
public static boolean isAllowInternalProperties()
public static void initServices(String artifactId, Class<?> mainClass)
artifactId - The Maven module's artifact id what initiates the Nexus.mainClass - The primary class what initiates the Nexus.public static void removeServices()
public static void setProperties(Map<String,String> propertiesMap)
propertiesMap - Map of properties. It should look like the .properties file's keys-values.Copyright © 2015. All rights reserved.