public abstract class BinaryScannerUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryScannerUtil.FeatureModifiedException |
class |
BinaryScannerUtil.FeatureUnavailableException |
class |
BinaryScannerUtil.NoRecommendationException |
class |
BinaryScannerUtil.RecommendationSetException |
| Modifier and Type | Field and Description |
|---|---|
static String |
BINARY_SCANNER_CONFLICT_MESSAGE1 |
static String |
BINARY_SCANNER_CONFLICT_MESSAGE2 |
static String |
BINARY_SCANNER_CONFLICT_MESSAGE3 |
static String |
BINARY_SCANNER_CONFLICT_MESSAGE4 |
static String |
BINARY_SCANNER_CONFLICT_MESSAGE5 |
static String |
BINARY_SCANNER_EEV6 |
static String |
BINARY_SCANNER_EEV7 |
static String |
BINARY_SCANNER_EEV8 |
static String |
BINARY_SCANNER_EEV9 |
static String |
BINARY_SCANNER_MAVEN_ARTIFACT_ID |
static String |
BINARY_SCANNER_MAVEN_GROUP_ID |
static String |
BINARY_SCANNER_MAVEN_TYPE |
static String |
BINARY_SCANNER_MAVEN_VERSION |
static Map<String,String> |
BINARY_SCANNER_MP |
static String |
BINARY_SCANNER_MPV1 |
static String |
BINARY_SCANNER_MPV2 |
static String |
BINARY_SCANNER_MPV3 |
static String |
BINARY_SCANNER_MPV4 |
static String |
BINARY_SCANNER_MPV5 |
static String |
BINARY_SCANNER_PREFIX |
static String |
BINARY_SCANNER_UMBRELLA_DEP_MAXV |
static String |
GENERATED_FEATURES_FILE_NAME |
static String |
GENERATED_FEATURES_FILE_PATH |
| Constructor and Description |
|---|
BinaryScannerUtil(File binaryScanner) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
debug(String message) |
abstract void |
debug(String message,
Throwable e) |
abstract void |
error(String message) |
abstract void |
info(String message) |
abstract boolean |
isDebugEnabled() |
Set<String> |
reRunBinaryScanner(Set<String> allClassesDirectories,
String logLocation,
String targetJavaEE,
String targetMicroProfile)
The method is intended to call the binary scanner to generate a list of the optimal features for an
application.
|
Set<String> |
runBinaryScanner(Set<String> currentFeatureSet,
List<String> classFiles,
Set<String> allClassesDirectories,
String logLocation,
String targetJavaEE,
String targetMicroProfile,
boolean optimize)
Call the binary scanner to generate a list of Liberty features to run an application.
|
abstract void |
warn(String message) |
public static final String BINARY_SCANNER_MAVEN_GROUP_ID
public static final String BINARY_SCANNER_MAVEN_ARTIFACT_ID
public static final String BINARY_SCANNER_MAVEN_TYPE
public static final String BINARY_SCANNER_MAVEN_VERSION
public static final String GENERATED_FEATURES_FILE_NAME
public static final String GENERATED_FEATURES_FILE_PATH
public static final String BINARY_SCANNER_CONFLICT_MESSAGE1
public static final String BINARY_SCANNER_CONFLICT_MESSAGE2
public static final String BINARY_SCANNER_CONFLICT_MESSAGE3
public static final String BINARY_SCANNER_CONFLICT_MESSAGE4
public static final String BINARY_SCANNER_CONFLICT_MESSAGE5
public static final String BINARY_SCANNER_EEV6
public static final String BINARY_SCANNER_EEV7
public static final String BINARY_SCANNER_EEV8
public static final String BINARY_SCANNER_EEV9
public static final String BINARY_SCANNER_PREFIX
public static final String BINARY_SCANNER_MPV1
public static final String BINARY_SCANNER_MPV2
public static final String BINARY_SCANNER_MPV3
public static final String BINARY_SCANNER_MPV4
public static final String BINARY_SCANNER_MPV5
public static final String BINARY_SCANNER_UMBRELLA_DEP_MAXV
public BinaryScannerUtil(File binaryScanner)
public abstract void debug(String message)
public abstract void error(String message)
public abstract void warn(String message)
public abstract void info(String message)
public abstract boolean isDebugEnabled()
public Set<String> runBinaryScanner(Set<String> currentFeatureSet, List<String> classFiles, Set<String> allClassesDirectories, String logLocation, String targetJavaEE, String targetMicroProfile, boolean optimize) throws PluginExecutionException, BinaryScannerUtil.NoRecommendationException, BinaryScannerUtil.RecommendationSetException, BinaryScannerUtil.FeatureModifiedException, BinaryScannerUtil.FeatureUnavailableException
currentFeatureSet - - the features already specified in the server configurationclassFiles - - a set of class files for the scanner to handle. Should be a subset of allClassesDirectoriesallClassesDirectories - - the directories containing all the class files of the applicationlogLocation - - directory name relative to project or absolute path passed to binary scannertargetJavaEE - - generate features valid for the indicated version of EEtargetMicroProfile - - generate features valid for the indicated version of MicroProfileoptimize - - true value means to scan all the classes in allClassesDirectories rather than just the
classes in the classFiles parameter. currentFeatureSet is still used as the basis of
the feature set.PluginExecutionException - - any exception that prevents the scanner from runningBinaryScannerUtil.NoRecommendationException - - indicates a problem and there are no recommended featuresBinaryScannerUtil.RecommendationSetException - - indicates a problem but the scanner was able to generate a set of
features that should work to run the applicationBinaryScannerUtil.FeatureModifiedException - - indicates a problem but the scanner was able to generate a set of features
that should work if certain features are modifiedBinaryScannerUtil.FeatureUnavailableException - - incidates a problem between required features and required MP/EE levels but
the scanner was able to generate a set of features that should be removedpublic Set<String> reRunBinaryScanner(Set<String> allClassesDirectories, String logLocation, String targetJavaEE, String targetMicroProfile) throws PluginExecutionException
allClassesDirectories - - the scanner will find all the class files in this set of directorieslogLocation - - directory name relative to project or absolute path passed to binary scannertargetJavaEE - - generate features valid for the indicated version of EEtargetMicroProfile - - generate features valid for the indicated version of MicroProfilePluginExecutionException - - any exception that prevents the scanner from runningCopyright © 2022 the original author or authors.