public class XBaseUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_DATETIME_PATTERN |
protected static Map<String,org.apache.commons.lang3.time.FastDateFormat> |
FAST_DATE_FORMATS |
Constructor and Description |
---|
XBaseUtils() |
Modifier and Type | Method and Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
static String |
extractStringByReplacingPlaceHolders(XMessageContext xMessageContext,
String inputString)
This method will replaces all the place holders of the inputString from the correct values which will be
extracted from the xMessageContext.
|
||||||||
static <T> Function<XMessageContext,Optional<T>> |
getExtractionFunction(ValueExtractionType extractionType,
Class<T> cls,
String value)
This method abstracts out logic of extracting out data from message context and returns the extraction logic as a
Function . |
||||||||
static URI |
getResource(String resourcePath,
XServerConfig serverConfig,
XProject project)
This method gives the resource locations for processing elements and connectors the lookup takes place in the
following order unless the specified path is an absolute path;
A file at "$conf/projects/$projectID/$projectVersion/$mode/$resourcePath
A file at "$conf/projects/$projectID/$projectVersion/$resourcePath
A file at "$conf/projects/$projectID/$mode/$resourcePath
A file at "$conf/projects/$projectID/$resourcePath
A file at $conf/$mode/$resourcePath
A file at $conf/$resourcePath
If environment mode is IDE, src/main/resources/$resourcePath file relative to project dir
A $mode/$resourcePath file in the classpath
A $resourcePath file in the classpath
where the following notation is used for the resource location
Copyright © 2016–2019 AdroitLogic. All rights reserved. |