diff --git a/pom.xml b/pom.xml
index 4503c109a..1bfed55fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,11 +32,13 @@
li.strolch
- li.strolch.model
+ li.strolch.bom
+ pom
- ch.eitchnet
- ch.eitchnet.privilege
+ org.slf4j
+ slf4j-log4j12
+ runtime
@@ -57,11 +59,41 @@
org.apache.maven.plugins
maven-jar-plugin
+
+
+
+ true
+ true
+
+
+ li.strolch.tutorialapp.main.Main
+ true
+ lib/
+
+
+
org.apache.maven.plugins
maven-site-plugin
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+ src/assembly/bin.xml
+ tutorial-app-${pom.version}
+
+
+
+ package
+
+ single
+
+
+
+
\ No newline at end of file
diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml
new file mode 100644
index 000000000..3a70a67dc
--- /dev/null
+++ b/src/assembly/bin.xml
@@ -0,0 +1,45 @@
+
+ bin
+
+ tar.gz
+
+
+
+
+
+
+
+ false
+ lib
+ false
+
+
+
+
+
+
+ ${project.build.directory}
+
+
+ *.jar
+
+
+
+
+
+ ${project.build.scriptSourceDirectory}
+
+
+ startup.*
+
+ true
+
+
+
+ src/runtime
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/li/strolch/tutorialapp/main/Main.java b/src/main/java/li/strolch/tutorialapp/main/Main.java
new file mode 100644
index 000000000..49ece783f
--- /dev/null
+++ b/src/main/java/li/strolch/tutorialapp/main/Main.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2012, Robert von Burg
+ *
+ * All rights reserved.
+ *
+ * This file is part of the XXX.
+ *
+ * XXX is free software: you can redistribute
+ * it and/or modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the License,
+ * or (at your option) any later version.
+ *
+ * XXX is distributed in the hope that it will
+ * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with XXX. If not, see
+ * .
+ */
+package li.strolch.tutorialapp.main;
+
+import li.strolch.runtime.main.MainStarter;
+
+/**
+ * @author Robert von Burg
+ *
+ */
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ MainStarter mainStarter = new MainStarter();
+ mainStarter.start(args);
+ }
+}
diff --git a/src/main/java/li/strolch/tutorialapp/postinitializer/PostInitializer.java b/src/main/java/li/strolch/tutorialapp/postinitializer/PostInitializer.java
new file mode 100644
index 000000000..93d4ac4b5
--- /dev/null
+++ b/src/main/java/li/strolch/tutorialapp/postinitializer/PostInitializer.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2012, Robert von Burg
+ *
+ * All rights reserved.
+ *
+ * This file is part of the XXX.
+ *
+ * XXX is free software: you can redistribute
+ * it and/or modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the License,
+ * or (at your option) any later version.
+ *
+ * XXX is distributed in the hope that it will
+ * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with XXX. If not, see
+ * .
+ */
+package li.strolch.tutorialapp.postinitializer;
+
+import li.strolch.runtime.component.ComponentContainer;
+import li.strolch.runtime.component.SimplePostInitializer;
+
+/**
+ * @author Robert von Burg
+ *
+ */
+public class PostInitializer extends SimplePostInitializer {
+
+ /**
+ * @param container
+ * @param componentName
+ */
+ public PostInitializer(ComponentContainer container, String componentName) {
+ super(container, componentName);
+ }
+
+ @Override
+ public void start() {
+
+ logger.info("Started PostInitializer."); //$NON-NLS-1$
+
+ super.start();
+ }
+}
diff --git a/src/main/resources/log4j.xml b/src/main/resources/log4j.xml
new file mode 100644
index 000000000..cb437ddeb
--- /dev/null
+++ b/src/main/resources/log4j.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/scripts/startup.sh b/src/main/scripts/startup.sh
new file mode 100644
index 000000000..f01f51379
--- /dev/null
+++ b/src/main/scripts/startup.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+java -classpath lib/ -jar ${artifactId}-${project.version}.jar --root-path=./
\ No newline at end of file
diff --git a/src/runtime/config/PrivilegeConfig.xml b/src/runtime/config/PrivilegeConfig.xml
new file mode 100644
index 000000000..6bd29a116
--- /dev/null
+++ b/src/runtime/config/PrivilegeConfig.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/runtime/config/PrivilegeModel.xml b/src/runtime/config/PrivilegeModel.xml
new file mode 100644
index 000000000..b4d091961
--- /dev/null
+++ b/src/runtime/config/PrivilegeModel.xml
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+ Application
+ Administrator
+ ENABLED
+ en_GB
+
+ PrivilegeAdmin
+ AppUser
+
+
+
+
+
+
+
+
+ Bob
+ Bernstein
+ ENABLED
+ en_GB
+
+ AppUser
+
+
+
+
+ Jill
+ Johnson
+ ENABLED
+ en_GB
+
+ OnlyGreetingServiceRole
+
+
+
+
+ System User
+ Administrator
+ SYSTEM
+ en_GB
+
+ sysAdmin
+ AppUser
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+ li.strolch.service.test.GreetingService
+
+
+
+
+
\ No newline at end of file
diff --git a/src/runtime/config/StrolchConfiguration.xml b/src/runtime/config/StrolchConfiguration.xml
new file mode 100644
index 000000000..e2586a0e2
--- /dev/null
+++ b/src/runtime/config/StrolchConfiguration.xml
@@ -0,0 +1,43 @@
+
+
+
+ StrolchTutorialApp
+
+ TRANSIENT
+ StrolchModel.xml
+ true
+
+
+
+ ServiceHandler
+ li.strolch.service.ServiceHandler
+ li.strolch.service.DefaultServiceHandler
+
+ true
+
+
+
+ PrivilegeHandler
+ li.strolch.runtime.privilege.StrolchPrivilegeHandler
+ li.strolch.runtime.privilege.DefaultStrolchPrivilegeHandler
+
+ PrivilegeConfig.xml
+
+
+
+ PostInitializer
+ li.strolch.runtime.component.PostInitializer
+ li.strolch.tutorialapp.postinitializer.PostInitializer
+ ServiceHandler
+
+
+
+
+ PersistenceHandler
+ li.strolch.persistence.api.StrolchPersistenceHandler
+ li.strolch.persistence.impl.XmlPersistenceHandler
+
+ true
+
+
+
\ No newline at end of file
diff --git a/src/runtime/data/Orders.xml b/src/runtime/data/Orders.xml
new file mode 100644
index 000000000..55358bcaa
--- /dev/null
+++ b/src/runtime/data/Orders.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/runtime/data/Resources.xml b/src/runtime/data/Resources.xml
new file mode 100644
index 000000000..e6259cb83
--- /dev/null
+++ b/src/runtime/data/Resources.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/runtime/data/StrolchModel.xml b/src/runtime/data/StrolchModel.xml
new file mode 100644
index 000000000..cb2396975
--- /dev/null
+++ b/src/runtime/data/StrolchModel.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file