Package org.nasutekds.server.api

Examples of org.nasutekds.server.api.MatchingRuleFactory


                                        boolean initialize)
          throws InitializationException
  {
    try
    {
      MatchingRuleFactory factory = null;
      MatchingRuleCfgDefn definition =
              MatchingRuleCfgDefn.getInstance();
      ClassPropertyDefinition propertyDefinition =
           definition.getJavaClassPropertyDefinition();
      Class<? extends MatchingRuleFactory> matchingRuleFactoryClass =
           propertyDefinition.loadClass(className,
                                        MatchingRuleFactory.class);
      factory = matchingRuleFactoryClass.newInstance();

      if (initialize)
      {
        Method method = factory.getClass().getMethod(
            "initializeMatchingRule", configuration.configurationClass());
        method.invoke(factory, configuration);
      }
      else
      {
        Method method =
             factory.getClass().getMethod("isConfigurationAcceptable",
                                               MatchingRuleCfg.class,
                                               List.class);

        List<Message> unacceptableReasons = new ArrayList<Message>();
        Boolean acceptable = (Boolean) method.invoke(factory,
View Full Code Here

TOP

Related Classes of org.nasutekds.server.api.MatchingRuleFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.