| | |
| | | |
| | | if (mrConfiguration.isEnabled()) |
| | | { |
| | | String className = mrConfiguration.getMatchingRuleClass(); |
| | | String className = mrConfiguration.getJavaClass(); |
| | | try |
| | | { |
| | | MatchingRule matchingRule = |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // matching rule. |
| | | String className = configuration.getMatchingRuleClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadMatchingRule(className, configuration, false); |
| | |
| | | |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // matching rule. |
| | | String className = configuration.getMatchingRuleClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | matchingRule = loadMatchingRule(className, configuration, true); |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // matching rule. |
| | | String className = configuration.getMatchingRuleClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadMatchingRule(className, configuration, false); |
| | |
| | | // changed then we'll at least need to indicate that administrative action |
| | | // is required. If the matching rule is disabled, then instantiate the |
| | | // class and initialize and register it as a matching rule. |
| | | String className = configuration.getMatchingRuleClass(); |
| | | String className = configuration.getJavaClass(); |
| | | if (existingRule != null) |
| | | { |
| | | if (! className.equals(existingRule.getClass().getName())) |
| | |
| | | ApproximateMatchingRuleCfgDefn definition = |
| | | ApproximateMatchingRuleCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getMatchingRuleClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends ApproximateMatchingRule> approximateMatchingRuleClass = |
| | | propertyDefinition.loadClass(className, |
| | | ApproximateMatchingRule.class); |
| | |
| | | EqualityMatchingRuleCfgDefn definition = |
| | | EqualityMatchingRuleCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getMatchingRuleClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends EqualityMatchingRule> equalityMatchingRuleClass = |
| | | propertyDefinition.loadClass(className, |
| | | EqualityMatchingRule.class); |
| | |
| | | OrderingMatchingRuleCfgDefn definition = |
| | | OrderingMatchingRuleCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getMatchingRuleClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends OrderingMatchingRule> orderingMatchingRuleClass = |
| | | propertyDefinition.loadClass(className, |
| | | OrderingMatchingRule.class); |
| | |
| | | SubstringMatchingRuleCfgDefn definition = |
| | | SubstringMatchingRuleCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getMatchingRuleClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends SubstringMatchingRule> substringMatchingRuleClass = |
| | | propertyDefinition.loadClass(className, |
| | | SubstringMatchingRule.class); |