mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
06.50.2014 4cb8262e95fde77e6a0d2c84f1aa118e3b1ee850
opendj3-server-dev/src/server/org/opends/server/schema/OctetStringSubstringMatchingRuleFactory.java
@@ -30,10 +30,11 @@
import java.util.Collection;
import java.util.Collections;
import org.opends.server.api.MatchingRuleFactory;
import org.opends.server.admin.std.server.MatchingRuleCfg;
import org.opends.server.api.MatchingRule;
import org.forgerock.opendj.config.server.ConfigException;
import org.forgerock.opendj.ldap.schema.CoreSchema;
import org.opends.server.admin.std.server.MatchingRuleCfg;
import org.opends.server.api.MatchingRuleFactory;
import org.opends.server.types.InitializationException;
/**
@@ -45,7 +46,7 @@
{
  //Associated Matching Rule.
  private MatchingRule matchingRule;
  private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
@@ -56,7 +57,7 @@
  public final void initializeMatchingRule(MatchingRuleCfg configuration)
         throws ConfigException, InitializationException
  {
    matchingRule = new OctetStringSubstringMatchingRule();
    matchingRule = CoreSchema.getOctetStringSubstringsMatchingRule();
  }
@@ -65,7 +66,7 @@
   * {@inheritDoc}
   */
  @Override
  public final Collection<MatchingRule> getMatchingRules()
  public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
  {
    return Collections.singleton(matchingRule);
  }