From 9b5c281e20bed92cb6ef618037394e4d3f8cdf51 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Wed, 8 Feb 2017 01:02:48 +0100 Subject: [PATCH] update license header --- .../src/main/java/HelloWorldRule.java | 23 +++++++++++++++++++ .../src/main/java/Launcher.java | 23 +++++++++++++++++++ .../java/org/easyrules/annotation/Action.java | 5 ++-- .../org/easyrules/annotation/Condition.java | 5 ++-- .../org/easyrules/annotation/Priority.java | 5 ++-- .../java/org/easyrules/annotation/Rule.java | 5 ++-- .../easyrules/annotation/package-info.java | 5 ++-- .../src/main/java/org/easyrules/api/Rule.java | 5 ++-- .../java/org/easyrules/api/RuleListener.java | 23 +++++++++++++++++++ .../java/org/easyrules/api/RulesEngine.java | 5 ++-- .../java/org/easyrules/api/package-info.java | 5 ++-- .../easyrules/core/ActionMethodOrderBean.java | 23 +++++++++++++++++++ .../java/org/easyrules/core/BasicRule.java | 4 ++-- .../org/easyrules/core/CompositeRule.java | 5 ++-- .../easyrules/core/DefaultRulesEngine.java | 5 ++-- .../core/RuleDefinitionValidator.java | 23 +++++++++++++++++++ .../java/org/easyrules/core/RuleProxy.java | 23 +++++++++++++++++++ .../easyrules/core/RulesEngineBuilder.java | 23 +++++++++++++++++++ .../easyrules/core/RulesEngineParameters.java | 23 +++++++++++++++++++ .../java/org/easyrules/core/package-info.java | 5 ++-- .../main/java/org/easyrules/util/Utils.java | 23 +++++++++++++++++++ .../java/org/easyrules/util/package-info.java | 5 ++-- .../org/easyrules/EasyRulesTestSuite.java | 23 +++++++++++++++++++ ...edRuleWithActionMethodHavingArguments.java | 23 +++++++++++++++++++ ...uleWithConditionMethodHavingArguments.java | 23 +++++++++++++++++++ ...itionMethodHavingNonBooleanReturnType.java | 23 +++++++++++++++++++ .../AnnotatedRuleWithMetaRuleAnnotation.java | 23 +++++++++++++++++++ ...atedRuleWithMoreThanOnePriorityMethod.java | 23 +++++++++++++++++++ ...nnotatedRuleWithNotPublicActionMethod.java | 23 +++++++++++++++++++ ...tatedRuleWithNotPublicConditionMethod.java | 23 +++++++++++++++++++ ...otatedRuleWithNotPublicPriorityMethod.java | 23 +++++++++++++++++++ ...RuleWithPriorityMethodHavingArguments.java | 23 +++++++++++++++++++ ...orityMethodHavingNonIntegerReturnType.java | 23 +++++++++++++++++++ .../AnnotatedRuleWithoutActionMethod.java | 23 +++++++++++++++++++ .../AnnotatedRuleWithoutCondition.java | 23 +++++++++++++++++++ .../org/easyrules/annotation/MetaRule.java | 23 +++++++++++++++++++ .../org/easyrules/core/BasicRuleTest.java | 23 +++++++++++++++++++ .../org/easyrules/core/CompositeRuleTest.java | 23 +++++++++++++++++++ .../core/CustomRuleOrderingTest.java | 23 +++++++++++++++++++ .../core/DefaultRulesEngineTest.java | 23 +++++++++++++++++++ .../core/RuleDefinitionValidatorTest.java | 23 +++++++++++++++++++ .../org/easyrules/core/RuleListenerTest.java | 5 ++-- .../core/RulePriorityThresholdTest.java | 5 ++-- .../org/easyrules/core/RuleProxyTest.java | 23 +++++++++++++++++++ .../core/RulesEngineBuilderTest.java | 23 +++++++++++++++++++ .../core/SkipOnFirstAppliedRuleTest.java | 5 ++-- .../core/SkipOnFirstFailedRuleTest.java | 5 ++-- .../core/SkipOnFirstNonTrigeredRuleTest.java | 5 ++-- .../java/org/easyrules/util/UtilsTest.java | 23 +++++++++++++++++++ .../org/easyrules/quartz/RulesEngineJob.java | 5 ++-- .../quartz/RulesEngineJobFactory.java | 5 ++-- .../quartz/RulesEngineScheduler.java | 5 ++-- .../quartz/RulesEngineSchedulerException.java | 5 ++-- .../org/easyrules/quartz/package-info.java | 5 ++-- .../quartz/RulesEngineSchedulerTest.java | 23 +++++++++++++++++++ .../spring/RulesEngineFactoryBean.java | 4 ++-- .../java/org/easyrules/spring/SpringRule.java | 23 +++++++++++++++++++ .../org/easyrules/spring/package-info.java | 5 ++-- .../spring/RulesEngineFactoryBeanTest.java | 5 ++-- 59 files changed, 811 insertions(+), 76 deletions(-) diff --git a/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/HelloWorldRule.java b/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/HelloWorldRule.java index 2a86e5c..68434bc 100644 --- a/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/HelloWorldRule.java +++ b/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/HelloWorldRule.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package ${packageName}; import org.easyrules.annotation.Action; diff --git a/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/Launcher.java b/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/Launcher.java index 013ce16..45ab125 100644 --- a/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/Launcher.java +++ b/easyrules-archetype/src/main/resources/archetype-resources/src/main/java/Launcher.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package ${packageName}; import org.easyrules.api.RulesEngine; diff --git a/easyrules-core/src/main/java/org/easyrules/annotation/Action.java b/easyrules-core/src/main/java/org/easyrules/annotation/Action.java index 781c16a..01af94f 100644 --- a/easyrules-core/src/main/java/org/easyrules/annotation/Action.java +++ b/easyrules-core/src/main/java/org/easyrules/annotation/Action.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.annotation; import java.lang.annotation.ElementType; diff --git a/easyrules-core/src/main/java/org/easyrules/annotation/Condition.java b/easyrules-core/src/main/java/org/easyrules/annotation/Condition.java index e53d360..302b310 100644 --- a/easyrules-core/src/main/java/org/easyrules/annotation/Condition.java +++ b/easyrules-core/src/main/java/org/easyrules/annotation/Condition.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.annotation; import java.lang.annotation.ElementType; diff --git a/easyrules-core/src/main/java/org/easyrules/annotation/Priority.java b/easyrules-core/src/main/java/org/easyrules/annotation/Priority.java index 58beb63..b0ddd71 100644 --- a/easyrules-core/src/main/java/org/easyrules/annotation/Priority.java +++ b/easyrules-core/src/main/java/org/easyrules/annotation/Priority.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.annotation; import java.lang.annotation.ElementType; diff --git a/easyrules-core/src/main/java/org/easyrules/annotation/Rule.java b/easyrules-core/src/main/java/org/easyrules/annotation/Rule.java index ca7bd91..bd8b390 100644 --- a/easyrules-core/src/main/java/org/easyrules/annotation/Rule.java +++ b/easyrules-core/src/main/java/org/easyrules/annotation/Rule.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.annotation; import org.easyrules.util.Utils; diff --git a/easyrules-core/src/main/java/org/easyrules/annotation/package-info.java b/easyrules-core/src/main/java/org/easyrules/annotation/package-info.java index 90714ce..5e66dd4 100644 --- a/easyrules-core/src/main/java/org/easyrules/annotation/package-info.java +++ b/easyrules-core/src/main/java/org/easyrules/annotation/package-info.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - /** * This package contains Easy Rules annotations. */ diff --git a/easyrules-core/src/main/java/org/easyrules/api/Rule.java b/easyrules-core/src/main/java/org/easyrules/api/Rule.java index 02c00d3..471cadb 100644 --- a/easyrules-core/src/main/java/org/easyrules/api/Rule.java +++ b/easyrules-core/src/main/java/org/easyrules/api/Rule.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.api; diff --git a/easyrules-core/src/main/java/org/easyrules/api/RuleListener.java b/easyrules-core/src/main/java/org/easyrules/api/RuleListener.java index 217e52e..9fa8ce1 100644 --- a/easyrules-core/src/main/java/org/easyrules/api/RuleListener.java +++ b/easyrules-core/src/main/java/org/easyrules/api/RuleListener.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.api; /** diff --git a/easyrules-core/src/main/java/org/easyrules/api/RulesEngine.java b/easyrules-core/src/main/java/org/easyrules/api/RulesEngine.java index ed2bff6..7a84a92 100644 --- a/easyrules-core/src/main/java/org/easyrules/api/RulesEngine.java +++ b/easyrules-core/src/main/java/org/easyrules/api/RulesEngine.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.api; import java.util.List; diff --git a/easyrules-core/src/main/java/org/easyrules/api/package-info.java b/easyrules-core/src/main/java/org/easyrules/api/package-info.java index 0211166..48987ea 100644 --- a/easyrules-core/src/main/java/org/easyrules/api/package-info.java +++ b/easyrules-core/src/main/java/org/easyrules/api/package-info.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - /** * This package contains Easy Rules public API. */ diff --git a/easyrules-core/src/main/java/org/easyrules/core/ActionMethodOrderBean.java b/easyrules-core/src/main/java/org/easyrules/core/ActionMethodOrderBean.java index bca34e0..425cbe1 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/ActionMethodOrderBean.java +++ b/easyrules-core/src/main/java/org/easyrules/core/ActionMethodOrderBean.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import java.lang.reflect.Method; diff --git a/easyrules-core/src/main/java/org/easyrules/core/BasicRule.java b/easyrules-core/src/main/java/org/easyrules/core/BasicRule.java index 73a2798..2d373d3 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/BasicRule.java +++ b/easyrules-core/src/main/java/org/easyrules/core/BasicRule.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 diff --git a/easyrules-core/src/main/java/org/easyrules/core/CompositeRule.java b/easyrules-core/src/main/java/org/easyrules/core/CompositeRule.java index 5f0ba7f..23959d4 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/CompositeRule.java +++ b/easyrules-core/src/main/java/org/easyrules/core/CompositeRule.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.Rule; diff --git a/easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java b/easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java index aac2f46..7647815 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java +++ b/easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.Rule; diff --git a/easyrules-core/src/main/java/org/easyrules/core/RuleDefinitionValidator.java b/easyrules-core/src/main/java/org/easyrules/core/RuleDefinitionValidator.java index 50c0edd..0769691 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/RuleDefinitionValidator.java +++ b/easyrules-core/src/main/java/org/easyrules/core/RuleDefinitionValidator.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.annotation.Action; diff --git a/easyrules-core/src/main/java/org/easyrules/core/RuleProxy.java b/easyrules-core/src/main/java/org/easyrules/core/RuleProxy.java index eb747f9..ef46976 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/RuleProxy.java +++ b/easyrules-core/src/main/java/org/easyrules/core/RuleProxy.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.annotation.Action; diff --git a/easyrules-core/src/main/java/org/easyrules/core/RulesEngineBuilder.java b/easyrules-core/src/main/java/org/easyrules/core/RulesEngineBuilder.java index 37af06b..4c945a5 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/RulesEngineBuilder.java +++ b/easyrules-core/src/main/java/org/easyrules/core/RulesEngineBuilder.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.api.RuleListener; diff --git a/easyrules-core/src/main/java/org/easyrules/core/RulesEngineParameters.java b/easyrules-core/src/main/java/org/easyrules/core/RulesEngineParameters.java index fbe04d8..351c5ab 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/RulesEngineParameters.java +++ b/easyrules-core/src/main/java/org/easyrules/core/RulesEngineParameters.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; /** diff --git a/easyrules-core/src/main/java/org/easyrules/core/package-info.java b/easyrules-core/src/main/java/org/easyrules/core/package-info.java index 6cd6f8c..e5add0d 100644 --- a/easyrules-core/src/main/java/org/easyrules/core/package-info.java +++ b/easyrules-core/src/main/java/org/easyrules/core/package-info.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - /** * This package contains Easy Rules core implementation. */ diff --git a/easyrules-core/src/main/java/org/easyrules/util/Utils.java b/easyrules-core/src/main/java/org/easyrules/util/Utils.java index 8331ce1..e805338 100644 --- a/easyrules-core/src/main/java/org/easyrules/util/Utils.java +++ b/easyrules-core/src/main/java/org/easyrules/util/Utils.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.util; import java.io.IOException; diff --git a/easyrules-core/src/main/java/org/easyrules/util/package-info.java b/easyrules-core/src/main/java/org/easyrules/util/package-info.java index b8da678..ced3733 100644 --- a/easyrules-core/src/main/java/org/easyrules/util/package-info.java +++ b/easyrules-core/src/main/java/org/easyrules/util/package-info.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - /** * This package contains Easy Rules utility classes. */ diff --git a/easyrules-core/src/test/java/org/easyrules/EasyRulesTestSuite.java b/easyrules-core/src/test/java/org/easyrules/EasyRulesTestSuite.java index a03544e..81b1fec 100644 --- a/easyrules-core/src/test/java/org/easyrules/EasyRulesTestSuite.java +++ b/easyrules-core/src/test/java/org/easyrules/EasyRulesTestSuite.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules; import junit.framework.TestSuite; diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithActionMethodHavingArguments.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithActionMethodHavingArguments.java index b5879e0..a170930 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithActionMethodHavingArguments.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithActionMethodHavingArguments.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingArguments.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingArguments.java index 7a817a9..dfb4a7c 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingArguments.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingArguments.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingNonBooleanReturnType.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingNonBooleanReturnType.java index bac077e..87ef4e1 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingNonBooleanReturnType.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithConditionMethodHavingNonBooleanReturnType.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMetaRuleAnnotation.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMetaRuleAnnotation.java index 0378f46..e377e5f 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMetaRuleAnnotation.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMetaRuleAnnotation.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @MetaRule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMoreThanOnePriorityMethod.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMoreThanOnePriorityMethod.java index b623ec9..3d18cb0 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMoreThanOnePriorityMethod.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithMoreThanOnePriorityMethod.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicActionMethod.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicActionMethod.java index 8de5906..894930b 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicActionMethod.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicActionMethod.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicConditionMethod.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicConditionMethod.java index 047b586..b5cfaf7 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicConditionMethod.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicConditionMethod.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicPriorityMethod.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicPriorityMethod.java index 25451ff..5a0ef8a 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicPriorityMethod.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithNotPublicPriorityMethod.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingArguments.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingArguments.java index c36e3b6..dc65bbe 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingArguments.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingArguments.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingNonIntegerReturnType.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingNonIntegerReturnType.java index 6e6cd93..33bcc2b 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingNonIntegerReturnType.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithPriorityMethodHavingNonIntegerReturnType.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutActionMethod.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutActionMethod.java index a960618..591566d 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutActionMethod.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutActionMethod.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutCondition.java b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutCondition.java index ad18348..a7357a9 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutCondition.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/AnnotatedRuleWithoutCondition.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; @Rule diff --git a/easyrules-core/src/test/java/org/easyrules/annotation/MetaRule.java b/easyrules-core/src/test/java/org/easyrules/annotation/MetaRule.java index 8fab0ea..c7b2074 100644 --- a/easyrules-core/src/test/java/org/easyrules/annotation/MetaRule.java +++ b/easyrules-core/src/test/java/org/easyrules/annotation/MetaRule.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.annotation; import java.lang.annotation.ElementType; diff --git a/easyrules-core/src/test/java/org/easyrules/core/BasicRuleTest.java b/easyrules-core/src/test/java/org/easyrules/core/BasicRuleTest.java index 0b736aa..88024e7 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/BasicRuleTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/BasicRuleTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import static org.assertj.core.api.Assertions.assertThat; diff --git a/easyrules-core/src/test/java/org/easyrules/core/CompositeRuleTest.java b/easyrules-core/src/test/java/org/easyrules/core/CompositeRuleTest.java index f43ae74..8959bbd 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/CompositeRuleTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/CompositeRuleTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.annotation.Action; diff --git a/easyrules-core/src/test/java/org/easyrules/core/CustomRuleOrderingTest.java b/easyrules-core/src/test/java/org/easyrules/core/CustomRuleOrderingTest.java index f275d04..2d9924d 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/CustomRuleOrderingTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/CustomRuleOrderingTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.api.Rule; diff --git a/easyrules-core/src/test/java/org/easyrules/core/DefaultRulesEngineTest.java b/easyrules-core/src/test/java/org/easyrules/core/DefaultRulesEngineTest.java index 03c9b92..70769e9 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/DefaultRulesEngineTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/DefaultRulesEngineTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.annotation.Action; diff --git a/easyrules-core/src/test/java/org/easyrules/core/RuleDefinitionValidatorTest.java b/easyrules-core/src/test/java/org/easyrules/core/RuleDefinitionValidatorTest.java index 188c831..05cf9bd 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/RuleDefinitionValidatorTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/RuleDefinitionValidatorTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; diff --git a/easyrules-core/src/test/java/org/easyrules/core/RuleListenerTest.java b/easyrules-core/src/test/java/org/easyrules/core/RuleListenerTest.java index 12483e0..be520ad 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/RuleListenerTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/RuleListenerTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.RuleListener; diff --git a/easyrules-core/src/test/java/org/easyrules/core/RulePriorityThresholdTest.java b/easyrules-core/src/test/java/org/easyrules/core/RulePriorityThresholdTest.java index 7c10663..1fac2a9 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/RulePriorityThresholdTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/RulePriorityThresholdTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.RulesEngine; diff --git a/easyrules-core/src/test/java/org/easyrules/core/RuleProxyTest.java b/easyrules-core/src/test/java/org/easyrules/core/RuleProxyTest.java index 73b0f98..6837e5a 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/RuleProxyTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/RuleProxyTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.annotation.AnnotatedRuleWithMetaRuleAnnotation; diff --git a/easyrules-core/src/test/java/org/easyrules/core/RulesEngineBuilderTest.java b/easyrules-core/src/test/java/org/easyrules/core/RulesEngineBuilderTest.java index 489fc5c..22f017b 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/RulesEngineBuilderTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/RulesEngineBuilderTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.core; import org.easyrules.api.RuleListener; diff --git a/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstAppliedRuleTest.java b/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstAppliedRuleTest.java index 55b47ec..4cbe4e8 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstAppliedRuleTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstAppliedRuleTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.RulesEngine; diff --git a/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstFailedRuleTest.java b/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstFailedRuleTest.java index 6efe906..fb6740f 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstFailedRuleTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstFailedRuleTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.RulesEngine; diff --git a/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstNonTrigeredRuleTest.java b/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstNonTrigeredRuleTest.java index 0db5feb..afb84a5 100644 --- a/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstNonTrigeredRuleTest.java +++ b/easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstNonTrigeredRuleTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2014, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.core; import org.easyrules.api.RulesEngine; diff --git a/easyrules-core/src/test/java/org/easyrules/util/UtilsTest.java b/easyrules-core/src/test/java/org/easyrules/util/UtilsTest.java index 3770ef9..7a00202 100644 --- a/easyrules-core/src/test/java/org/easyrules/util/UtilsTest.java +++ b/easyrules-core/src/test/java/org/easyrules/util/UtilsTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.util; import org.junit.Test; diff --git a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJob.java b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJob.java index b6e70a1..9bb4e12 100644 --- a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJob.java +++ b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJob.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.quartz; import org.easyrules.api.RulesEngine; diff --git a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJobFactory.java b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJobFactory.java index e33992c..bc6c813 100644 --- a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJobFactory.java +++ b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineJobFactory.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.quartz; import org.easyrules.api.RulesEngine; diff --git a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineScheduler.java b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineScheduler.java index 3388a15..3f4fba5 100644 --- a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineScheduler.java +++ b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineScheduler.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.quartz; import org.easyrules.api.RulesEngine; diff --git a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineSchedulerException.java b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineSchedulerException.java index df558b6..ca459e3 100644 --- a/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineSchedulerException.java +++ b/easyrules-quartz/src/main/java/org/easyrules/quartz/RulesEngineSchedulerException.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.quartz; import org.quartz.SchedulerException; diff --git a/easyrules-quartz/src/main/java/org/easyrules/quartz/package-info.java b/easyrules-quartz/src/main/java/org/easyrules/quartz/package-info.java index 85495aa..94cf4c5 100644 --- a/easyrules-quartz/src/main/java/org/easyrules/quartz/package-info.java +++ b/easyrules-quartz/src/main/java/org/easyrules/quartz/package-info.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - /** * This package contains Quartz support classes. */ diff --git a/easyrules-quartz/src/test/java/org/easyrules/quartz/RulesEngineSchedulerTest.java b/easyrules-quartz/src/test/java/org/easyrules/quartz/RulesEngineSchedulerTest.java index 9de8522..a403291 100644 --- a/easyrules-quartz/src/test/java/org/easyrules/quartz/RulesEngineSchedulerTest.java +++ b/easyrules-quartz/src/test/java/org/easyrules/quartz/RulesEngineSchedulerTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.quartz; import org.easyrules.api.RulesEngine; diff --git a/easyrules-spring/src/main/java/org/easyrules/spring/RulesEngineFactoryBean.java b/easyrules-spring/src/main/java/org/easyrules/spring/RulesEngineFactoryBean.java index d5d4579..62863b5 100755 --- a/easyrules-spring/src/main/java/org/easyrules/spring/RulesEngineFactoryBean.java +++ b/easyrules-spring/src/main/java/org/easyrules/spring/RulesEngineFactoryBean.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 diff --git a/easyrules-spring/src/main/java/org/easyrules/spring/SpringRule.java b/easyrules-spring/src/main/java/org/easyrules/spring/SpringRule.java index 8f5617d..c9d26e8 100644 --- a/easyrules-spring/src/main/java/org/easyrules/spring/SpringRule.java +++ b/easyrules-spring/src/main/java/org/easyrules/spring/SpringRule.java @@ -1,3 +1,26 @@ +/** + * The MIT License + * + * Copyright (c) 2017, 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 + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package org.easyrules.spring; import org.easyrules.annotation.Rule; diff --git a/easyrules-spring/src/main/java/org/easyrules/spring/package-info.java b/easyrules-spring/src/main/java/org/easyrules/spring/package-info.java index 3216e45..3121725 100644 --- a/easyrules-spring/src/main/java/org/easyrules/spring/package-info.java +++ b/easyrules-spring/src/main/java/org/easyrules/spring/package-info.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - /** * This package contains Spring support classes. */ diff --git a/easyrules-spring/src/test/java/org/easyrules/spring/RulesEngineFactoryBeanTest.java b/easyrules-spring/src/test/java/org/easyrules/spring/RulesEngineFactoryBeanTest.java index d2b1150..a2a07e6 100755 --- a/easyrules-spring/src/test/java/org/easyrules/spring/RulesEngineFactoryBeanTest.java +++ b/easyrules-spring/src/test/java/org/easyrules/spring/RulesEngineFactoryBeanTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License * - * Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) + * Copyright (c) 2017, 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 @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - package org.easyrules.spring; import org.easyrules.api.RuleListener;