public final class SecurityAnalysisPreprocessors
extends java.lang.Object
SecurityAnalysisPreprocessor
s or factories.Modifier and Type | Method and Description |
---|---|
static java.util.Optional<SecurityAnalysisPreprocessorFactory> |
configuredFactory(PlatformConfig platformConfig)
The preprocessor factory based on the specified platform
config . |
static java.util.Optional<SecurityAnalysisPreprocessorFactory> |
configuredFactory(SecurityAnalysisConfig config)
The default preprocessor factory, based on default platform
config . |
static SecurityAnalysisPreprocessor |
contingenciesPreprocessor(ContingenciesProviderFactory factory,
com.google.common.io.ByteSource source)
Create a preprocessor which will create and inject a
ContingenciesProvider into
security analysis inputs, based on the specified factory and the specified
source of data (raw bytes to be interpreted by the factory). |
static java.util.Optional<SecurityAnalysisPreprocessorFactory> |
defaultConfiguredFactory()
The default preprocessor factory, based on default platform
config . |
static SecurityAnalysisPreprocessorFactory |
factoryForName(java.lang.String name)
Look for a factory with specified name, among the factories loaded as services.
|
static SecurityAnalysisPreprocessorFactory |
wrap(ContingenciesProviderFactory factory)
Create a preprocessor which will create and inject a
ContingenciesProvider into
security analysis inputs, based on the specified factory and the specified
source of data (raw bytes to be interpreted by the factory). |
public static SecurityAnalysisPreprocessorFactory factoryForName(java.lang.String name)
name
- the name identifying the requested factory.public static java.util.Optional<SecurityAnalysisPreprocessorFactory> defaultConfiguredFactory()
config
.public static java.util.Optional<SecurityAnalysisPreprocessorFactory> configuredFactory(PlatformConfig platformConfig)
config
.public static java.util.Optional<SecurityAnalysisPreprocessorFactory> configuredFactory(SecurityAnalysisConfig config)
config
.
If a preprocessor is specified in security-analysis config module, returns the
corresponding factory, else return the default factory which delegates data interpretation
to the configured ContingenciesProviderFactory
.
public static SecurityAnalysisPreprocessorFactory wrap(ContingenciesProviderFactory factory)
ContingenciesProvider
into
security analysis inputs, based on the specified factory and the specified
source of data (raw bytes to be interpreted by the factory).factory
- the factory in charge of creating the ContingenciesProvider
.ContingenciesProvider
.public static SecurityAnalysisPreprocessor contingenciesPreprocessor(ContingenciesProviderFactory factory, com.google.common.io.ByteSource source)
ContingenciesProvider
into
security analysis inputs, based on the specified factory and the specified
source of data (raw bytes to be interpreted by the factory).factory
- the factory in charge of creating the ContingenciesProvider
.source
- the source of data to be used by the factory.ContingenciesProvider
.Copyright © 2020. All rights reserved.