update author's email

pull/55/head
Mahmoud Ben Hassine 9 years ago
parent ea142d55dc
commit 5cbc0f7495

@ -74,7 +74,7 @@ Easy Rules is released under the [![MIT license](http://img.shields.io/badge/lic
``` ```
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2015 Mahmoud Ben Hassine (mahmoud@benhassine.fr) Copyright (c) 2016 Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

@ -15,10 +15,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -34,10 +34,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -34,7 +34,7 @@ import java.lang.annotation.Target;
* Must annotate any public method with no arguments. * Must annotate any public method with no arguments.
* The method return value will be ignored by the engine. * The method return value will be ignored by the engine.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD) @Target(ElementType.METHOD)

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -33,7 +33,7 @@ import java.lang.annotation.Target;
* Annotation to mark a method as a rule condition. * Annotation to mark a method as a rule condition.
* Must annotate any public method with no arguments and that returns a boolean value. * Must annotate any public method with no arguments and that returns a boolean value.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD) @Target(ElementType.METHOD)

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -33,7 +33,7 @@ import java.lang.annotation.Target;
* Annotation to mark the method to execute to get rule priority. * Annotation to mark the method to execute to get rule priority.
* Must annotate any public method with no arguments and that returns an integer value. * Must annotate any public method with no arguments and that returns an integer value.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD) @Target(ElementType.METHOD)

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -34,7 +34,7 @@ import java.lang.annotation.Target;
/** /**
* Annotation to mark a class as a rule. * Annotation to mark a class as a rule.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -30,7 +30,7 @@ package org.easyrules.api;
* *
* Rules are registered in the rules engine registry and must have a <strong>unique</strong> name. * Rules are registered in the rules engine registry and must have a <strong>unique</strong> name.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public interface Rule { public interface Rule {

@ -3,7 +3,7 @@ package org.easyrules.api;
/** /**
* A listener for rules execution events. * A listener for rules execution events.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public interface RuleListener { public interface RuleListener {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -29,7 +29,7 @@ import java.util.Set;
/** /**
* Rules engine interface. * Rules engine interface.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public interface RulesEngine { public interface RulesEngine {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -5,7 +5,7 @@ import java.lang.reflect.Method;
/** /**
* Utility class that associates an action method and its execution order. * Utility class that associates an action method and its execution order.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> { class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> {
@ -57,4 +57,4 @@ class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> {
return result; return result;
} }
} }

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -35,7 +35,7 @@ import javax.management.MXBean;
* You can extend this class and override {@link BasicRule#evaluate()} and {@link BasicRule#execute()} * You can extend this class and override {@link BasicRule#evaluate()} and {@link BasicRule#execute()}
* to provide rule conditions and actions logic. * to provide rule conditions and actions logic.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@MXBean @MXBean
public class BasicRule implements Rule, Comparable<Rule> { public class BasicRule implements Rule, Comparable<Rule> {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -36,7 +36,7 @@ import java.util.TreeSet;
* A composite rule is triggered if <strong>ALL</strong> conditions of its composing rules are satisfied. * A composite rule is triggered if <strong>ALL</strong> conditions of its composing rules are satisfied.
* When a composite rule is applied, actions of <strong>ALL</strong> composing rules are performed. * When a composite rule is applied, actions of <strong>ALL</strong> composing rules are performed.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class CompositeRule extends BasicRule { public class CompositeRule extends BasicRule {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -42,7 +42,7 @@ import java.util.logging.Logger;
* <p/> * <p/>
* Rules are fired according to their natural order which is priority by default. * Rules are fired according to their natural order which is priority by default.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
class DefaultRulesEngine implements RulesEngine { class DefaultRulesEngine implements RulesEngine {

@ -18,7 +18,7 @@ import static java.lang.String.format;
/** /**
* Validate that an annotated rule object is well defined. * Validate that an annotated rule object is well defined.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
class RuleDefinitionValidator { class RuleDefinitionValidator {

@ -3,7 +3,7 @@ package org.easyrules.core;
/** /**
* Utility class that associates a rule to its priority. * Utility class that associates a rule to its priority.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
final class RulePriorityBean implements Comparable<RulePriorityBean> { final class RulePriorityBean implements Comparable<RulePriorityBean> {

@ -9,7 +9,7 @@ import java.util.List;
/** /**
* Builder for rules engine instances. * Builder for rules engine instances.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class RulesEngineBuilder { public class RulesEngineBuilder {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -14,7 +14,7 @@ import static java.util.Arrays.asList;
/** /**
* Utilities class. * Utilities class.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public final class Utils { public final class Utils {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -8,7 +8,7 @@ import org.junit.runners.Suite;
/** /**
* Test suite for Easy Rules core module. * Test suite for Easy Rules core module.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(Suite.class) @RunWith(Suite.class)

@ -13,7 +13,7 @@ import static org.mockito.Mockito.*;
/** /**
* Test class for composite rule execution. * Test class for composite rule execution.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class CompositeRuleTest { public class CompositeRuleTest {

@ -17,7 +17,7 @@ import static org.mockito.Mockito.when;
/** /**
* Test class for custom rule ordering. * Test class for custom rule ordering.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class CustomRuleOrderingTest { public class CustomRuleOrderingTest {

@ -21,7 +21,7 @@ import static org.mockito.Mockito.*;
/** /**
* Test class for {@link org.easyrules.core.DefaultRulesEngine}. * Test class for {@link org.easyrules.core.DefaultRulesEngine}.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class DefaultRulesEngineTest { public class DefaultRulesEngineTest {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -39,7 +39,7 @@ import static org.mockito.Mockito.*;
/** /**
* Test class of the execution of rule listeners. * Test class of the execution of rule listeners.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class RuleListenerTest { public class RuleListenerTest {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -38,7 +38,7 @@ import static org.mockito.Mockito.when;
/** /**
* Test class of rules priority comparison. * Test class of rules priority comparison.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class RulePriorityThresholdTest { public class RulePriorityThresholdTest {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -36,7 +36,7 @@ import static org.mockito.Mockito.*;
/** /**
* Test class of "skip on first applied rule" parameter of Easy Rules default engine. * Test class of "skip on first applied rule" parameter of Easy Rules default engine.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class SkipOnFirstAppliedRuleTest { public class SkipOnFirstAppliedRuleTest {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -36,7 +36,7 @@ import static org.mockito.Mockito.*;
/** /**
* Test class of "skip on first failed rule" parameter of Easy Rules default engine. * Test class of "skip on first failed rule" parameter of Easy Rules default engine.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class SkipOnFirstFailedRuleTest { public class SkipOnFirstFailedRuleTest {

@ -34,10 +34,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -33,7 +33,7 @@ import java.util.List;
/** /**
* Builder for Jmx rules engine instances. * Builder for Jmx rules engine instances.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class JmxRulesEngineBuilder { public class JmxRulesEngineBuilder {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -15,7 +15,7 @@ import static org.easyrules.core.JmxRulesEngineBuilder.aNewJmxRulesEngine;
/** /**
* Test class for JMX managed rule registration. * Test class for JMX managed rule registration.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class JmxRuleRegistrationTest { public class JmxRuleRegistrationTest {

@ -34,10 +34,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/** /**
* This package contains Quartz support classes. * This package contains Quartz support classes.
*/ */
package org.easyrules.quartz; package org.easyrules.quartz;

@ -34,10 +34,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -31,7 +31,7 @@ import org.easyrules.annotation.Rule;
/** /**
* Hello World rule class. * Hello World rule class.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Rule(name = "Hello World rule", description = "Say Hello to duke's friends only") @Rule(name = "Hello World rule", description = "Say Hello to duke's friends only")
public class HelloWorldRule { public class HelloWorldRule {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -33,7 +33,7 @@ import static org.easyrules.core.RulesEngineBuilder.aNewRulesEngine;
/** /**
* Launcher class of the Hello World sample. * Launcher class of the Hello World sample.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class Launcher { public class Launcher {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -27,7 +27,7 @@ package org.easyrules.samples.order;
/** /**
* Customer java bean. * Customer java bean.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
class Customer { class Customer {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -33,7 +33,7 @@ import static org.easyrules.core.JmxRulesEngineBuilder.aNewJmxRulesEngine;
/** /**
* Launcher class of the order sample. * Launcher class of the order sample.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class Launcher { public class Launcher {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -27,7 +27,7 @@ package org.easyrules.samples.order;
/** /**
* Order java bean. * Order java bean.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
class Order { class Order {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -32,7 +32,7 @@ import javax.management.MXBean;
* Interface to make suspect order rule manageable via JMX.<br/> * Interface to make suspect order rule manageable via JMX.<br/>
* Suspect order threshold should be changed at runtime. * Suspect order threshold should be changed at runtime.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@MXBean @MXBean
@ -50,4 +50,4 @@ public interface SuspectOrderJmxRule extends JmxRule {
*/ */
void setSuspectOrderAmountThreshold(float suspectOrderAmountThreshold); void setSuspectOrderAmountThreshold(float suspectOrderAmountThreshold);
} }

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -29,7 +29,7 @@ import org.easyrules.core.BasicRule;
/** /**
* Business rule class that defines suspect order rule. * Business rule class that defines suspect order rule.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class SuspectOrderRule extends BasicRule implements SuspectOrderJmxRule { public class SuspectOrderRule extends BasicRule implements SuspectOrderJmxRule {

@ -8,7 +8,7 @@ import org.easyrules.annotation.Rule;
/** /**
* A rule class that marks a person as adult if it's age is greater than 18. * A rule class that marks a person as adult if it's age is greater than 18.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Rule(name = "AgeRule", description = "Check if person's age is > 18 and marks the person as adult") @Rule(name = "AgeRule", description = "Check if person's age is > 18 and marks the person as adult")
public class AgeRule { public class AgeRule {

@ -8,7 +8,7 @@ import org.easyrules.annotation.Rule;
/** /**
* Rule class that prohibits children from buying alcohol. * Rule class that prohibits children from buying alcohol.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@Rule(name = "alcoholRule", description = "Children are not allowed to buy alcohol.") @Rule(name = "alcoholRule", description = "Children are not allowed to buy alcohol.")
public class AlcoholRule { public class AlcoholRule {

@ -7,7 +7,7 @@ import static org.easyrules.core.RulesEngineBuilder.aNewRulesEngine;
/** /**
* Launcher class for rule priority tutorial. * Launcher class for rule priority tutorial.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class Launcher { public class Launcher {

@ -3,7 +3,7 @@ package org.easyrules.samples.rulePriority;
/** /**
* Person class. * Person class.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class Person { public class Person {

@ -9,7 +9,7 @@ import java.util.Date;
/** /**
* Main class to run the scheduler tutorial. * Main class to run the scheduler tutorial.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class Launcher { public class Launcher {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -31,7 +31,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
/** /**
* Main class to run the Spring tutorial. * Main class to run the Spring tutorial.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class Launcher { public class Launcher {

@ -34,10 +34,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -36,7 +36,7 @@ import static org.easyrules.util.Utils.DEFAULT_RULE_PRIORITY_THRESHOLD;
/** /**
* Factory bean to create {@link RulesEngine} instances. * Factory bean to create {@link RulesEngine} instances.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
public class RulesEngineFactoryBean implements FactoryBean<RulesEngine> { public class RulesEngineFactoryBean implements FactoryBean<RulesEngine> {

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/** /**
* This package contains Spring support classes. * This package contains Spring support classes.
*/ */
package org.easyrules.spring; package org.easyrules.spring;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr) * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -44,7 +44,7 @@ import static org.springframework.util.ReflectionUtils.*;
/** /**
* Test class for {@link RulesEngineFactoryBean}. * Test class for {@link RulesEngineFactoryBean}.
* *
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr) * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/ */
@RunWith(MockitoJUnitRunner.class) @RunWith(MockitoJUnitRunner.class)
public class RulesEngineFactoryBeanTest { public class RulesEngineFactoryBeanTest {

@ -64,10 +64,10 @@
<developer> <developer>
<id>benas</id> <id>benas</id>
<name>Mahmoud Ben Hassine</name> <name>Mahmoud Ben Hassine</name>
<url>http://www.mahmoud-benhassine.fr</url> <url>http://benas.github.io</url>
<email>mahmoud@benhassine.fr</email> <email>mahmoud.benhassine@icloud.com</email>
<roles> <roles>
<role>Project founder</role> <role>Lead developer</role>
</roles> </roles>
</developer> </developer>
</developers> </developers>

@ -6,10 +6,10 @@ exclude: ["CNAME", "README"]
author : author :
name : Mahmoud Ben Hassine name : Mahmoud Ben Hassine
email : mahmoud@benhassine.fr email : mahmoud.benhassine@icloud.com
github : benas github : benas
twitter : _benas_ twitter : _benas_
web : http://www.mahmoud-benhassine.fr web : http://benas.github.io
project: project:
name: Easy Rules name: Easy Rules

Loading…
Cancel
Save