01: package org.drools.common;
02:
03: import java.io.Serializable;
04:
05: import org.drools.spi.AgendaGroup;
06:
07: public class PriorityQueueAgendaGroupFactory implements
08: AgendaGroupFactory, Serializable {
09: private static final AgendaGroupFactory INSTANCE = new PriorityQueueAgendaGroupFactory();
10:
11: public static AgendaGroupFactory getInstance() {
12: return INSTANCE;
13: }
14:
15: public AgendaGroup createAgendaGroup(String name,
16: InternalRuleBase ruleBase) {
17: return new BinaryHeapQueueAgendaGroup(name, ruleBase);
18: }
19: }
|