Skip to content

Commit

Permalink
Move RulesEngineParameters to the org.jeasy.rules.api package
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fmbenhassine committed May 16, 2020
1 parent 7d50291 commit a999f46
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import java.util.List;
import java.util.Map;

import org.jeasy.rules.core.RulesEngineParameters;

/**
* Rules engine interface.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;

import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;

import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;

import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package org.jeasy.rules.core;

import org.jeasy.rules.api.RulesEngineParameters;
import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
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) {
Expand Down

0 comments on commit a999f46

Please sign in to comment.