update author's email

pull/55/head
Mahmoud Ben Hassine
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)
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
of this software and associated documentation files (the "Software"), to deal

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

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

@ -1,7 +1,7 @@
/*
* 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
* 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.
* 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)
@Target(ElementType.METHOD)

@ -1,7 +1,7 @@
/*
* 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
* 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.
* 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)
@Target(ElementType.METHOD)

@ -1,7 +1,7 @@
/*
* 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
* 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.
* 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)
@Target(ElementType.METHOD)

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public interface Rule {

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

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -29,7 +29,7 @@ import java.util.Set;
/**
* Rules engine interface.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public interface RulesEngine {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> {
@ -57,4 +57,4 @@ class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> {
return result;
}
}
}

@ -1,7 +1,7 @@
/*
* 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
* 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()}
* to provide rule conditions and actions logic.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@MXBean
public class BasicRule implements Rule, Comparable<Rule> {

@ -1,7 +1,7 @@
/*
* 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
* 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.
* 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 {

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -42,7 +42,7 @@ import java.util.logging.Logger;
* <p/>
* 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 {

@ -18,7 +18,7 @@ import static java.lang.String.format;
/**
* 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 {

@ -3,7 +3,7 @@ package org.easyrules.core;
/**
* 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> {

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

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

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

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@RunWith(Suite.class)

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

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

@ -21,7 +21,7 @@ import static org.mockito.Mockito.*;
/**
* 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)
public class DefaultRulesEngineTest {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@RunWith(MockitoJUnitRunner.class)
public class RuleListenerTest {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@RunWith(MockitoJUnitRunner.class)
public class RulePriorityThresholdTest {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@RunWith(MockitoJUnitRunner.class)
public class SkipOnFirstAppliedRuleTest {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@RunWith(MockitoJUnitRunner.class)
public class SkipOnFirstFailedRuleTest {

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

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class JmxRulesEngineBuilder {

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class JmxRuleRegistrationTest {

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

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/**
* This package contains Quartz support classes.
*/
package org.easyrules.quartz;
package org.easyrules.quartz;

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

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -31,7 +31,7 @@ import org.easyrules.annotation.Rule;
/**
* 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")
public class HelloWorldRule {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class Launcher {

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -27,7 +27,7 @@ package org.easyrules.samples.order;
/**
* Customer java bean.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
class Customer {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class Launcher {

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -27,7 +27,7 @@ package org.easyrules.samples.order;
/**
* Order java bean.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
class Order {

@ -1,7 +1,7 @@
/*
* 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
* 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/>
* Suspect order threshold should be changed at runtime.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@MXBean
@ -50,4 +50,4 @@ public interface SuspectOrderJmxRule extends JmxRule {
*/
void setSuspectOrderAmountThreshold(float suspectOrderAmountThreshold);
}
}

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
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.
*
* @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")
public class AgeRule {

@ -8,7 +8,7 @@ import org.easyrules.annotation.Rule;
/**
* 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.")
public class AlcoholRule {

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

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

@ -9,7 +9,7 @@ import java.util.Date;
/**
* 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 {

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class Launcher {

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

@ -1,7 +1,7 @@
/*
* 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
* 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.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class RulesEngineFactoryBean implements FactoryBean<RulesEngine> {

@ -1,7 +1,7 @@
/*
* 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
* of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/**
* This package contains Spring support classes.
*/
package org.easyrules.spring;
package org.easyrules.spring;

@ -1,7 +1,7 @@
/*
* 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
* 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}.
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@RunWith(MockitoJUnitRunner.class)
public class RulesEngineFactoryBeanTest {

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

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

Loading…
Cancel
Save