summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Campo2008-02-04 05:54:07 (EST)
committerChristian Campo2008-02-04 05:54:07 (EST)
commitff9bc2e343f74aef9abee5ec6d9a8f84a465f5a9 (patch)
tree24dea5e88336f4f9eab6fe9e6ab6cbfe4abe53b8
parent0332568742317ce515a221f1e016c9c010235d59 (diff)
downloadorg.eclipse.riena-ff9bc2e343f74aef9abee5ec6d9a8f84a465f5a9.zip
org.eclipse.riena-ff9bc2e343f74aef9abee5ec6d9a8f84a465f5a9.tar.gz
org.eclipse.riena-ff9bc2e343f74aef9abee5ec6d9a8f84a465f5a9.tar.bz2
new RienaStartupStatus. Allows others to check that the riena.core part is up
-rw-r--r--org.eclipse.riena.core/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java19
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java2
3 files changed, 23 insertions, 1 deletions
diff --git a/org.eclipse.riena.core/META-INF/MANIFEST.MF b/org.eclipse.riena.core/META-INF/MANIFEST.MF
index e4044a1..bc059a7 100644
--- a/org.eclipse.riena.core/META-INF/MANIFEST.MF
+++ b/org.eclipse.riena.core/META-INF/MANIFEST.MF
@@ -9,7 +9,8 @@ Import-Package: org.eclipse.equinox.log,
org.osgi.framework;version="1.3.0",
org.osgi.service.cm;version="1.2.0",
org.osgi.service.log;version="1.3.0"
-Export-Package: org.eclipse.riena.core.cache,
+Export-Package: org.eclipse.riena.core,
+ org.eclipse.riena.core.cache,
org.eclipse.riena.core.config,
org.eclipse.riena.core.contract,
org.eclipse.riena.core.exception,
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java
new file mode 100644
index 0000000..bc4f4cc
--- /dev/null
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/RienaStartupStatus.java
@@ -0,0 +1,19 @@
+package org.eclipse.riena.core;
+public class RienaStartupStatus {
+
+ private boolean started = true;
+ private static RienaStartupStatus myself = new RienaStartupStatus();
+
+ public static RienaStartupStatus getInstance() {
+ return myself;
+ }
+
+ public boolean isStarted() {
+ return started;
+ }
+
+ public void setStarted(boolean startedParm) {
+ started = startedParm;
+ }
+
+}
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java b/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java
index c848afc..c01bbce 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java
@@ -14,6 +14,7 @@ import java.util.Hashtable;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.equinox.log.Logger;
+import org.eclipse.riena.core.RienaStartupStatus;
import org.eclipse.riena.core.logging.LogUtil;
import org.eclipse.riena.internal.core.config.ConfigFromExtensions;
import org.eclipse.riena.internal.core.config.ConfigSymbolReplace;
@@ -77,6 +78,7 @@ public class Activator extends Plugin {
// execute the class that reads through the extensions and executes them
// as config admin packages
new ConfigFromExtensions(context).doConfig();
+ RienaStartupStatus.getInstance().setStarted(true);
}
/*