public class RuleSetLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_DIRECTORY_NAME |
static String |
CONFIG_REGISTRY_PREFIX |
static String |
GOVERNANCE_DIRECTORY_NAME |
static String |
GOVERNANCE_REGISTRY_PREFIX |
static String |
LOCAL_DIRECTORY_NAME |
static String |
LOCAL_REGISTRY_PREFIX |
static String |
URL_SEPARATOR |
static char |
URL_SEPARATOR_CHAR |
Constructor and Description |
---|
RuleSetLoader() |
Modifier and Type | Method and Description |
---|---|
static String |
getHome() |
static FileInputStream |
getRuleSetAsFileStream(org.wso2.carbon.rule.common.Rule rule,
ClassLoader classLoader)
This method is used to get the rule set as a stream.
|
static InputStream |
getRuleSetAsStream(org.wso2.carbon.rule.common.Rule rule,
ClassLoader classLoader)
This method is used to get the rule set as a stream.
|
static String |
getSystemDependentPath(String path) |
public static final char URL_SEPARATOR_CHAR
public static final String URL_SEPARATOR
public static final String CONFIG_REGISTRY_PREFIX
public static final String GOVERNANCE_REGISTRY_PREFIX
public static final String LOCAL_REGISTRY_PREFIX
public static final String CONFIG_DIRECTORY_NAME
public static final String GOVERNANCE_DIRECTORY_NAME
public static final String LOCAL_DIRECTORY_NAME
public static String getHome()
public static InputStream getRuleSetAsStream(org.wso2.carbon.rule.common.Rule rule, ClassLoader classLoader) throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
rule
- - rule object which contains the rule source type and the valueclassLoader
- - class loader to be used to load the classesorg.wso2.carbon.rule.common.exception.RuleConfigurationException
- - if there is a problem with the configurationpublic static FileInputStream getRuleSetAsFileStream(org.wso2.carbon.rule.common.Rule rule, ClassLoader classLoader) throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
rule
- - rule object which contains the rule source type and the valueorg.wso2.carbon.rule.common.exception.RuleConfigurationException
- - if there is a problem with the configurationCopyright © 2023 WSO2. All rights reserved.