Class EngagementUtil
java.lang.Object
com.bluebell.greenhouse.osmosis.util.EngagementUtil
Utility class for engagement functionality.
- Version:
- 1.0.9
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsHelpArg(String[] args) Returns true when help is present in the command-line arguments.static ExchangeRegistryServicecreateExchangeRegistryService(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates the shared CLIExchangeRegistryService.static com.fasterxml.jackson.databind.ObjectMapperCreates the shared CLIObjectMapper.static SymbolRegistryServicecreateSymbolRegistryService(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates the shared CLISymbolRegistryService.Parses command-line args into a keyed map.static booleanparseBooleanArg(Map<String, String> arguments, String flag, boolean defaultValue) Parses a boolean argument, returning the provided default when not present.static PathResolves the default exchange registry path for CLI execution.
-
Method Details
-
parseArgs
-
parseBooleanArg
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()Creates the shared CLIObjectMapper.- Returns:
ObjectMapper
-
createSymbolRegistryService
public static SymbolRegistryService createSymbolRegistryService(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates the shared CLISymbolRegistryService.- Parameters:
objectMapper- sharedObjectMapper- Returns:
SymbolRegistryService
-
createExchangeRegistryService
public static ExchangeRegistryService createExchangeRegistryService(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates the shared CLIExchangeRegistryService.- Parameters:
objectMapper- sharedObjectMapper- Returns:
ExchangeRegistryService
-
resolveExchangeRegistryPath
-
containsHelpArg
Returns true when help is present in the command-line arguments.- Parameters:
args- command-line args- Returns:
- boolean
-