public class ConfigurationService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ConfigurationService() |
Modifier and Type | Method and Description |
---|---|
static EDPGlobalConfigs |
getEdpGlobalConfigs()
This method returns the configurations, which affects whole Payment Rules behaviors.
|
static EDPTicklerFactory |
getEDPTicklerFactory()
This method returns the Payment Rules tickler factory specified in Payment Rules global configuration, such as EDPLog type
factory.
|
static PaymentGroupConfiguration |
getPaymentGroupConfiguration(java.lang.String paymentGroupName)
This method gets the configuration of the payment group with a specified
name.
|
static java.lang.String |
getTargetState(java.lang.String paymentGrpId,
java.lang.String paymentRule,
int phase)
This method gets the target payment state in current configuration for
specified payment group id, payment rule, business event phase.
|
static void |
reload()
This method reloads configuration data into memory from xml files, which is used by the management interface to reload the whole rule configuration data.
|
public static final java.lang.String COPYRIGHT
public static EDPTicklerFactory getEDPTicklerFactory()
public static EDPGlobalConfigs getEdpGlobalConfigs()
This object returned has all configure values loaded from XML configuration file.
This method does not validate XML file against XSD file.
public static PaymentGroupConfiguration getPaymentGroupConfiguration(java.lang.String paymentGroupName)
paymentGroupName
- The name of the payment group from which we want to access the
configuration datapublic static java.lang.String getTargetState(java.lang.String paymentGrpId, java.lang.String paymentRule, int phase) throws RuleException, InternalException
paymentGrpId
- The current payment group idpaymentRule
- The current payment rulephase
- The current business event phaseRuleException
- In case of any payment rule errorInternalException
- In case of any internal errorpublic static void reload()