rename tutorial launcher class

pull/27/head
Mahmoud Ben Hassine 10 years ago
parent 074daf8471
commit 57a7e55d31

@ -77,7 +77,7 @@
<artifactId>exec-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<mainClass>org.easyrules.samples.helloworld.HelloWorldSampleLauncher</mainClass>
<mainClass>org.easyrules.samples.helloworld.Launcher</mainClass>
<systemProperties>
<systemProperty>
<key>java.util.logging.SimpleFormatter.format</key>
@ -121,7 +121,7 @@
<artifactId>exec-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<mainClass>org.easyrules.samples.order.OrderSampleLauncher</mainClass>
<mainClass>org.easyrules.samples.order.Launcher</mainClass>
<systemProperties>
<systemProperty>
<key>java.util.logging.SimpleFormatter.format</key>

@ -35,7 +35,7 @@ import static org.easyrules.core.RulesEngineBuilder.aNewRulesEngine;
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
*/
public class HelloWorldSampleLauncher {
public class Launcher {
public static void main(String[] args) {

@ -35,7 +35,7 @@ import static org.easyrules.core.JmxRulesEngineBuilder.aNewJmxRulesEngine;
*
* @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
*/
public class OrderSampleLauncher {
public class Launcher {
public static void main(String[] args) throws InterruptedException {

@ -86,7 +86,7 @@ The `execute` method simply writes to the console the specified alert (this coul
Then, let's create a `JmxRulesEngine` and register the `SuspectOrderRule` rule:
```java
public class OrderSampleLauncher {
public class Launcher {
public static void main(String[] args) {
@ -177,7 +177,7 @@ public class SuspectOrderRule extends BasicRule implements SuspectOrderJmxRule {
Finally, let's suspend the program to change the order amount threshold value at runtime via any compliant JMX client and see the engine behavior after this change:
```java
public class OrderSampleLauncher {
public class Launcher {
public static void main(String[] args) throws InterruptedException {

@ -49,10 +49,10 @@ public class HelloWorldRule {
}
```
Then, we have to register an instance of this rule in a Easy Rules engine and launch the program with the following class :
Then, we have to register an instance of this rule in a Easy Rules engine and launch the tutorial with the following class:
```java
public class HelloWorldSampleLauncher {
public class Launcher {
public static void main(String[] args) {
@ -94,7 +94,7 @@ $ cd easyrules-samples
$ mvn exec:java -P runHelloWorldTutorial
{% endhighlight %}
If you run this tutorial, you would get the following output:
You would get the following output:
```
Are you a friend of duke? [yes/no]:

Loading…
Cancel
Save