Permalink
Browse files

Resolve split-packages: move everything from kie-api under org.kie.ap…

…i: move classes directly under org.kie.runtime
  • Loading branch information...
1 parent 3b75567 commit c68eaab9f245e325804ce912f31b4a2c20c18442 @ge0ffrey ge0ffrey committed Mar 18, 2013
Showing 383 changed files with 888 additions and 889 deletions.
@@ -1,8 +1,8 @@
package org.drools.compiler.cdi.test;
import org.kie.KnowledgeBase;
-import org.kie.runtime.StatefulKnowledgeSession;
-import org.kie.runtime.StatelessKnowledgeSession;
+import org.kie.api.runtime.StatefulKnowledgeSession;
+import org.kie.api.runtime.StatelessKnowledgeSession;
public interface KProjectTestClass {
public KnowledgeBase getKBase1();
@@ -3,8 +3,8 @@
import org.kie.KnowledgeBase;
import org.kie.api.cdi.KBase;
import org.kie.api.cdi.KSession;
-import org.kie.runtime.StatefulKnowledgeSession;
-import org.kie.runtime.StatelessKnowledgeSession;
+import org.kie.api.runtime.StatefulKnowledgeSession;
+import org.kie.api.runtime.StatelessKnowledgeSession;
import javax.inject.Inject;
@@ -5,8 +5,8 @@
import org.kie.KnowledgeBase;
import org.kie.api.cdi.KBase;
import org.kie.api.cdi.KSession;
-import org.kie.runtime.StatefulKnowledgeSession;
-import org.kie.runtime.StatelessKnowledgeSession;
+import org.kie.api.runtime.StatefulKnowledgeSession;
+import org.kie.api.runtime.StatelessKnowledgeSession;
import javax.inject.Inject;
import java.util.ArrayList;
@@ -38,10 +38,10 @@
import org.kie.api.cdi.KBase;
import org.kie.api.cdi.KReleaseId;
import org.kie.api.cdi.KSession;
-import org.kie.runtime.KieContainer;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieContainer;
+import org.kie.api.runtime.KieSession;
import org.kie.internal.runtime.StatefulKnowledgeSession;
-import org.kie.runtime.StatelessKieSession;
+import org.kie.api.runtime.StatelessKieSession;
import org.kie.internal.runtime.StatelessKnowledgeSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -116,7 +116,7 @@
import org.kie.api.io.Resource;
import org.kie.api.io.ResourceConfiguration;
import org.kie.api.io.ResourceType;
-import org.kie.runtime.rule.Match;
+import org.kie.api.runtime.rule.Match;
import org.xml.sax.SAXException;
import java.beans.IntrospectionException;
@@ -58,7 +58,7 @@
import org.kie.internal.utils.ChainedProperties;
import org.kie.internal.utils.ClassLoaderUtil;
import org.kie.internal.utils.CompositeClassLoader;
-import org.kie.runtime.rule.AccumulateFunction;
+import org.kie.api.runtime.rule.AccumulateFunction;
/**
* This class configures the package compiler.
@@ -2,9 +2,9 @@
import org.kie.api.builder.model.KieBaseModel;
import org.kie.api.builder.model.KieSessionModel;
-import org.kie.runtime.KieContainer;
-import org.kie.runtime.KieSession;
-import org.kie.runtime.StatelessKieSession;
+import org.kie.api.runtime.KieContainer;
+import org.kie.api.runtime.KieSession;
+import org.kie.api.runtime.StatelessKieSession;
public interface InternalKieContainer extends KieContainer {
@@ -5,7 +5,7 @@
import org.kie.api.builder.ReleaseId;
import org.kie.api.builder.KieModule;
import org.kie.api.builder.KieScanner;
-import org.kie.runtime.KieContainer;
+import org.kie.api.runtime.KieContainer;
public interface InternalKieScanner extends KieScanner {
@@ -16,10 +16,10 @@
import org.kie.api.builder.model.KieSessionModel;
import org.kie.internal.definition.KnowledgePackage;
import org.kie.internal.utils.CompositeClassLoader;
-import org.kie.runtime.Environment;
-import org.kie.runtime.KieSession;
-import org.kie.runtime.KieSessionConfiguration;
-import org.kie.runtime.StatelessKieSession;
+import org.kie.api.runtime.Environment;
+import org.kie.api.runtime.KieSession;
+import org.kie.api.runtime.KieSessionConfiguration;
+import org.kie.api.runtime.StatelessKieSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -9,7 +9,7 @@
import org.kie.api.builder.KieScanner;
import org.kie.internal.utils.ServiceRegistryImpl;
import org.kie.api.io.Resource;
-import org.kie.runtime.KieContainer;
+import org.kie.api.runtime.KieContainer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -22,7 +22,7 @@
import org.kie.api.logger.KieLoggers;
import org.kie.api.marshalling.KieMarshallers;
import org.kie.api.persistence.jpa.KieStoreServices;
-import org.kie.runtime.KieContainer;
+import org.kie.api.runtime.KieContainer;
import java.io.File;
@@ -15,8 +15,8 @@
import org.kie.api.event.process.ProcessEventListener;
import org.kie.api.event.rule.AgendaEventListener;
import org.kie.api.event.rule.WorkingMemoryEventListener;
-import org.kie.runtime.KieSession;
-import org.kie.runtime.process.WorkItemHandler;
+import org.kie.api.runtime.KieSession;
+import org.kie.api.runtime.process.WorkItemHandler;
public class CDIHelper {
@@ -9,7 +9,7 @@
import org.kie.api.builder.model.KieSessionModel;
import org.kie.api.builder.model.ListenerModel;
import org.kie.api.builder.model.WorkItemHandlerModel;
-import org.kie.runtime.conf.ClockTypeOption;
+import org.kie.api.runtime.conf.ClockTypeOption;
import java.util.ArrayList;
import java.util.List;
@@ -91,7 +91,7 @@ public ClockTypeOption getClockType() {
}
/* (non-Javadoc)
- * @see org.kie.kproject.KieSessionModel#setClockType(org.kie.runtime.conf.ClockTypeOption)
+ * @see org.kie.kproject.KieSessionModel#setClockType(org.kie.api.runtime.conf.ClockTypeOption)
*/
public KieSessionModel setClockType(ClockTypeOption clockType) {
this.clockType = clockType;
@@ -23,7 +23,7 @@
import org.drools.core.rule.RuleConditionElement;
import org.drools.core.spi.InternalReadAccessor;
import org.drools.core.spi.ObjectType;
-import org.kie.runtime.rule.Variable;
+import org.kie.api.runtime.rule.Variable;
import org.mvel2.MVEL;
public class QueryElementBuilder
@@ -52,7 +52,7 @@
import org.drools.core.spi.Accumulator;
import org.drools.core.spi.DeclarationScopeResolver;
import org.drools.core.spi.InternalReadAccessor;
-import org.kie.runtime.rule.AccumulateFunction;
+import org.kie.api.runtime.rule.AccumulateFunction;
/**
* A builder for the java dialect accumulate version
@@ -48,7 +48,7 @@
import org.drools.core.spi.Accumulator;
import org.drools.core.spi.InternalReadAccessor;
import org.drools.core.spi.KnowledgeHelper;
-import org.kie.runtime.rule.AccumulateFunction;
+import org.kie.api.runtime.rule.AccumulateFunction;
/**
* A builder for the java dialect accumulate version
@@ -100,21 +100,21 @@ public static class @{className} implements java.io.Serializable {
@end{}
@declare{"consequenceMethod"}
-public static void @{methodName}(KnowledgeHelper drools@if{declarations != empty},@end{} @foreach{declr : declarations} @{declr.typeName} @{declr.identifier}, org.drools.core.FactHandle @{declr.identifier}__Handle__ @end{","}@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} ) throws Exception { org.kie.runtime.rule.RuleContext kcontext = drools;
+public static void @{methodName}(KnowledgeHelper drools@if{declarations != empty},@end{} @foreach{declr : declarations} @{declr.typeName} @{declr.identifier}, org.drools.core.FactHandle @{declr.identifier}__Handle__ @end{","}@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} ) throws Exception { org.kie.api.runtime.rule.RuleContext kcontext = drools;
@{text}
}
@end{}
@declare{"actionMethod"}
public static void @{methodName}(KnowledgeHelper drools@if{globals != empty},@end{} @foreach{type :globalTypes, identifier : globals} @{type} @{identifier} @end{","} @if{variables != empty},@end{} @foreach{type2 :variableTypes, identifier2 : variables} @{type2} @{identifier2} @end{","}, ProcessContext context ) throws Exception {
- org.kie.runtime.process.ProcessContext kcontext = context;
+ org.kie.api.runtime.process.ProcessContext kcontext = context;
@{text}
}
@end{}
@declare{"returnValueEvaluatorMethod"}
public static Object @{methodName}(ProcessContext context@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} @if{variables != empty},@end{} @foreach{type2 :variableTypes, identifier2 : variables} @{type2} @{identifier2} @end{","} ) throws Exception {
- org.kie.runtime.process.ProcessContext kcontext = context;
+ org.kie.api.runtime.process.ProcessContext kcontext = context;
@{text}
}
@end{}
@@ -29,9 +29,9 @@
import org.kie.internal.runtime.StatefulKnowledgeSession;
import org.kie.internal.runtime.StatelessKnowledgeSession;
import org.kie.api.io.ResourceType;
-import org.kie.runtime.Environment;
-import org.kie.runtime.KieSessionConfiguration;
-import org.kie.runtime.conf.KieSessionOption;
+import org.kie.api.runtime.Environment;
+import org.kie.api.runtime.KieSessionConfiguration;
+import org.kie.api.runtime.conf.KieSessionOption;
/**
* This contains methods common to many of the tests in drools-compiler.
@@ -26,8 +26,8 @@
import org.kie.internal.io.ResourceFactory;
import org.kie.internal.runtime.StatefulKnowledgeSession;
import org.kie.api.io.ResourceType;
-import org.kie.runtime.KieSessionConfiguration;
-import org.kie.runtime.rule.FactHandle;
+import org.kie.api.runtime.KieSessionConfiguration;
+import org.kie.api.runtime.rule.FactHandle;
public class JTMSTest {
protected StatefulKnowledgeSession getSessionFromString( String drlString) {
@@ -101,8 +101,8 @@ public void testPosNegNonConflictingInsertions() {
" AgendaItem item = ( AgendaItem ) kcontext.getMatch();" +
" item.setActivationUnMatchListener( new ActivationUnMatchListener() {\n" +
" \n" +
- " public void unMatch(org.kie.runtime.rule.Session wm,\n" +
- " org.kie.runtime.rule.Match activation) {\n" +
+ " public void unMatch(org.kie.api.runtime.rule.Session wm,\n" +
+ " org.kie.api.runtime.rule.Match activation) {\n" +
" l.remove( s );\n" +
" }\n" +
" } );" +
@@ -117,8 +117,8 @@ public void testPosNegNonConflictingInsertions() {
" AgendaItem item = ( AgendaItem ) kcontext.getMatch();" +
" item.setActivationUnMatchListener( new ActivationUnMatchListener() {\n" +
" \n" +
- " public void unMatch(org.kie.runtime.rule.Session wm,\n" +
- " org.kie.runtime.rule.Match activation) {\n" +
+ " public void unMatch(org.kie.api.runtime.rule.Session wm,\n" +
+ " org.kie.api.runtime.rule.Match activation) {\n" +
" l.remove( s );\n" +
" }\n" +
" } );" +
@@ -390,8 +390,8 @@ public void testRetractHandleWhenOnlyNeg() {
" AgendaItem item = ( AgendaItem ) kcontext.getMatch(); \n" +
" item.setActivationUnMatchListener( new ActivationUnMatchListener() { \n" +
" \n" +
- " public void unMatch(org.kie.runtime.rule.Session wm, \n" +
- " org.kie.runtime.rule.Match activation) { \n" +
+ " public void unMatch(org.kie.api.runtime.rule.Session wm, \n" +
+ " org.kie.api.runtime.rule.Match activation) { \n" +
" l.remove( s ); \n" +
" }\n" +
" } );" +
@@ -22,8 +22,8 @@
import org.drools.compiler.kie.builder.impl.KieFileSystemImpl;
import org.kie.api.conf.EqualityBehaviorOption;
import org.kie.api.conf.EventProcessingOption;
-import org.kie.runtime.KieContainer;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieContainer;
+import org.kie.api.runtime.KieSession;
import java.io.File;
import java.io.IOException;
@@ -31,7 +31,7 @@
import org.kie.internal.builder.conf.EvaluatorOption;
import org.kie.internal.builder.conf.LanguageLevelOption;
import org.kie.internal.builder.conf.ProcessStringEscapesOption;
-import org.kie.runtime.rule.AccumulateFunction;
+import org.kie.api.runtime.rule.AccumulateFunction;
import java.io.File;
import java.io.IOException;
@@ -19,7 +19,7 @@
import org.kie.api.KieBase;
import org.kie.api.cdi.KBase;
import org.kie.api.cdi.KSession;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieSession;
@RunWith(CDITestRunner.class)
public class CDIScopeTest {
@@ -32,7 +32,7 @@
import org.drools.compiler.kie.builder.impl.KieContainerImpl;
import org.drools.compiler.kie.builder.impl.KieRepositoryImpl;
import org.drools.compiler.kie.builder.impl.KieServicesImpl;
-import org.kie.runtime.KieContainer;
+import org.kie.api.runtime.KieContainer;
public class CDITestRunner extends BlockJUnit4ClassRunner {
@@ -20,7 +20,7 @@
import org.junit.runner.RunWith;
import org.kie.api.KieBase;
import org.kie.api.cdi.KReleaseId;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieSession;
@RunWith(CDITestRunner.class)
public class KieBaseDefaultInjectionTest {
@@ -21,7 +21,7 @@
import org.kie.api.KieBase;
import org.kie.api.cdi.KBase;
import org.kie.api.cdi.KReleaseId;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieSession;
@RunWith(CDITestRunner.class)
public class KieBaseInjectionTest {
@@ -19,8 +19,8 @@
import org.junit.runner.RunWith;
import org.kie.api.KieServices;
import org.kie.api.cdi.KReleaseId;
-import org.kie.runtime.KieContainer;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieContainer;
+import org.kie.api.runtime.KieSession;
@RunWith(CDITestRunner.class)
public class KieContainerInjectionTest {
@@ -19,7 +19,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.kie.api.cdi.KReleaseId;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieSession;
@RunWith(CDITestRunner.class)
public class KieSessionDefaultInjectionTest {
@@ -20,7 +20,7 @@
import org.junit.runner.RunWith;
import org.kie.api.cdi.KReleaseId;
import org.kie.api.cdi.KSession;
-import org.kie.runtime.KieSession;
+import org.kie.api.runtime.KieSession;
@RunWith(CDITestRunner.class)
public class KieSessionInjectionTest {
@@ -21,7 +21,7 @@
import org.kie.api.KieServices;
import org.kie.api.cdi.KReleaseId;
import org.kie.api.command.KieCommands;
-import org.kie.runtime.StatelessKieSession;
+import org.kie.api.runtime.StatelessKieSession;
@RunWith(CDITestRunner.class)
public class StatelessKieSessionDefaultInjectionTest {
@@ -22,7 +22,7 @@
import org.kie.api.cdi.KReleaseId;
import org.kie.api.cdi.KSession;
import org.kie.api.command.KieCommands;
-import org.kie.runtime.StatelessKieSession;
+import org.kie.api.runtime.StatelessKieSession;
@RunWith(CDITestRunner.class)
public class StatelessKieSessionInjectionTest {
@@ -27,7 +27,7 @@
import org.kie.internal.runtime.StatefulKnowledgeSession;
import org.kie.api.io.Resource;
import org.kie.api.io.ResourceType;
-import org.kie.runtime.ExecutionResults;
+import org.kie.api.runtime.ExecutionResults;
public class KBuilderBatchExecutionTest extends CommonTestMethodBase {
@@ -31,8 +31,8 @@
import org.kie.internal.io.ResourceFactory;
import org.kie.internal.runtime.StatefulKnowledgeSession;
import org.kie.api.io.ResourceType;
-import org.kie.runtime.ExecutionResults;
-import org.kie.runtime.rule.QueryResults;
+import org.kie.api.runtime.ExecutionResults;
+import org.kie.api.runtime.rule.QueryResults;
public class MoreBatchExecutionTest extends CommonTestMethodBase {
Oops, something went wrong.

0 comments on commit c68eaab

Please sign in to comment.