test_class.declarator: instance
test_class.modifier: private
test_class.original_string: private StatelessRuleServiceJsr94 instance;
test_class.type: StatelessRuleServiceJsr94
test_class.var_name: instance
test_class.declarator: ruleDrl = "/rule/Gender.drl"
test_class.modifier: private
test_class.original_string: private String ruleDrl = "/rule/Gender.drl";
test_class.type: String
test_class.var_name: ruleDrl
test_class.declarator: chencao
test_class.modifier: private
test_class.original_string: private Person chencao;
test_class.type: Person
test_class.var_name: chencao
test_class.declarator: xishi
test_class.modifier: private
test_class.original_string: private Person xishi;
test_class.type: Person
test_class.var_name: xishi
test_class.declarator: yyang
test_class.modifier: private
test_class.original_string: private Person yyang;
test_class.type: Person
test_class.var_name: yyang
test_class.file: dddlib-rule-engine/src/test/java/org/dayatang/rule/impl/StatelessRuleServiceJsr94Test.java
test_class.identifier: StatelessRuleServiceJsr94Test
test_case.body: @Test
      public void testExecuteRules() {
          instance = StatelessRuleServiceJsr94.builder()
                  .ruleServiceProvider(new RuleServiceProviderImpl())
                  .serviceProviderProperties(null)
                  .executionSetProperties(null)
                  .ruleSource(getClass().getResourceAsStream(ruleDrl))
                  .sessionProperties(null)
                  .bulid();
  
          // Execute rule
          List results = instance.executeRules(Arrays.asList(chencao, xishi, yyang));
  
          // Validate
          assertEquals(60, chencao.getRetireAge());
          assertEquals(55, xishi.getRetireAge());
          assertEquals(60, yyang.getRetireAge());
  
          //Release the resources
          instance.release();
  
      }
test_case.class_method_signature: StatelessRuleServiceJsr94Test.testExecuteRules()
test_case.full_signature: @Test public void testExecuteRules()
test_case.identifier: testExecuteRules
test_case.invocations: bulid sessionProperties ruleSource executionSetProperties serviceProviderProperties ruleServiceProvider builder getResourceAsStream getClass executeRules asList assertEquals getRetireAge assertEquals getRetireAge assertEquals getRetireAge release
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExecuteRules()
focal_class.declarator: serialVersionUID = -6550908446842944288L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -6550908446842944288L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: LOGGER = LoggerFactory.getLogger(StatelessRuleServiceJsr94.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger LOGGER = LoggerFactory.getLogger(StatelessRuleServiceJsr94.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: session
focal_class.modifier: private
focal_class.original_string: private StatelessRuleSession session;
focal_class.type: StatelessRuleSession
focal_class.var_name: session
focal_class.file: dddlib-rule-engine/src/main/java/org/dayatang/rule/impl/StatelessRuleServiceJsr94.java
focal_class.identifier: StatelessRuleServiceJsr94
focal_class.interfaces: implements StatelessRuleService
focal_class.class_method_signature: StatelessRuleServiceJsr94.StatelessRuleServiceJsr94(RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties,
                                       Object ruleSource, Map executionSetProperties, Map sessionProperties)
focal_class.full_signature: private  StatelessRuleServiceJsr94(RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties,
                                       Object ruleSource, Map executionSetProperties, Map sessionProperties)
focal_class.identifier: StatelessRuleServiceJsr94
focal_class.modifiers: private
focal_class.parameters: (RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties,
                                       Object ruleSource, Map executionSetProperties, Map sessionProperties)
focal_class.signature:  StatelessRuleServiceJsr94(RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties,
                                       Object ruleSource, Map executionSetProperties, Map sessionProperties)
focal_class.class_method_signature: StatelessRuleServiceJsr94.createRuleExecutionSet(LocalRuleExecutionSetProvider ruleExecutionSetProvider,
                                                      Object ruleSource, Map executionSetProperties)
focal_class.full_signature: private RuleExecutionSet createRuleExecutionSet(LocalRuleExecutionSetProvider ruleExecutionSetProvider,
                                                      Object ruleSource, Map executionSetProperties)
focal_class.identifier: createRuleExecutionSet
focal_class.modifiers: private
focal_class.parameters: (LocalRuleExecutionSetProvider ruleExecutionSetProvider,
                                                      Object ruleSource, Map executionSetProperties)
focal_class.return: RuleExecutionSet
focal_class.signature: RuleExecutionSet createRuleExecutionSet(LocalRuleExecutionSetProvider ruleExecutionSetProvider,
                                                      Object ruleSource, Map executionSetProperties)
focal_class.class_method_signature: StatelessRuleServiceJsr94.executeRules(List facts)
focal_class.full_signature: @Override public List executeRules(List facts)
focal_class.identifier: executeRules
focal_class.modifiers: @Override public
focal_class.parameters: (List facts)
focal_class.return: List
focal_class.signature: List executeRules(List facts)
focal_class.class_method_signature: StatelessRuleServiceJsr94.release()
focal_class.full_signature: public void release()
focal_class.identifier: release
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void release()
focal_class.class_method_signature: StatelessRuleServiceJsr94.builder()
focal_class.full_signature: public static Builder builder()
focal_class.identifier: builder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Builder
focal_class.signature: Builder builder()
focal_method.body: @Override
      public List executeRules(List facts) {
          try {
              return session.executeRules(facts);
          } catch (InvalidRuleSessionException e) {
              throw new RuleRuntimeException("Invalid Rule Session.", e);
          } catch (RemoteException e) {
              throw new IllegalStateException(e);
          }
      }
focal_method.class_method_signature: StatelessRuleServiceJsr94.executeRules(List facts)
focal_method.full_signature: @Override public List executeRules(List facts)
focal_method.identifier: executeRules
focal_method.invocations: executeRules
focal_method.modifiers: @Override public
focal_method.parameters: (List facts)
focal_method.return: List
focal_method.signature: List executeRules(List facts)