Move RulesEngineParameters to the org.jeasy.rules.api package

The method org.jeasy.rules.api.RulesEngine#getParameters
returns `RulesEngineParameters` which is in the `core` package.
This creates a package dependency api -> core which is incorrect.
pull/284/head
Mahmoud Ben Hassine 5 years ago
parent 7d50291522
commit a999f46153
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

@ -27,8 +27,6 @@ import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.jeasy.rules.core.RulesEngineParameters;
/**
* Rules engine interface.
*

@ -21,7 +21,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.jeasy.rules.core;
package org.jeasy.rules.api;
import org.jeasy.rules.core.DefaultRulesEngine;
import org.jeasy.rules.core.InferenceRulesEngine;
/**
* Parameters of a rules engine.

@ -26,6 +26,7 @@ package org.jeasy.rules.core;
import org.jeasy.rules.api.RuleListener;
import org.jeasy.rules.api.RulesEngine;
import org.jeasy.rules.api.RulesEngineListener;
import org.jeasy.rules.api.RulesEngineParameters;
import java.util.ArrayList;
import java.util.Collections;

@ -39,6 +39,7 @@ import org.jeasy.rules.annotation.Condition;
import org.jeasy.rules.annotation.Priority;
import org.jeasy.rules.api.RuleListener;
import org.jeasy.rules.api.RulesEngineListener;
import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;
import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;
import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;
import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;
import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

@ -27,7 +27,7 @@ import org.jeasy.rules.api.Facts;
import org.jeasy.rules.api.Rules;
import org.jeasy.rules.api.RulesEngine;
import org.jeasy.rules.core.DefaultRulesEngine;
import org.jeasy.rules.core.RulesEngineParameters;
import org.jeasy.rules.api.RulesEngineParameters;
public class FizzBuzzWithEasyRules {
public static void main(String[] args) {

Loading…
Cancel
Save