summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-21 05:55:40 (EST)
committerStefan Liebig2008-02-21 05:55:40 (EST)
commita7bd7cdd291bbed68aef54460d5ace8cd00198a2 (patch)
tree8bb7472f8334ff6027e395e38843e2dc6399f439
parentdcef345b4c735c8a8207395545f9d5e2fb4554fa (diff)
downloadorg.eclipse.riena-a7bd7cdd291bbed68aef54460d5ace8cd00198a2.zip
org.eclipse.riena-a7bd7cdd291bbed68aef54460d5ace8cd00198a2.tar.gz
org.eclipse.riena-a7bd7cdd291bbed68aef54460d5ace8cd00198a2.tar.bz2
lazy init has to be synchronized + removed error prone string handling
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java8
1 files changed, 4 insertions, 4 deletions
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 f1670d9..fdd8a29 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
@@ -51,13 +51,13 @@ public class Activator extends Plugin {
Bundle[] bundles = context.getBundles();
for (Bundle bundle : bundles) {
- String forceStart = (String) bundle.getHeaders().get("Riena-ForceStart");
+ boolean forceStart = Boolean.parseBoolean((String) bundle.getHeaders().get("Riena-ForceStart"));
if (bundle.getState() != Bundle.ACTIVE
&& (bundle.getSymbolicName().equals("org.eclipse.equinox.cm") || bundle.getSymbolicName().equals(
"org.eclipse.equinox.log"))) {
- forceStart = "true";
+ forceStart = true;
}
- if (forceStart != null && forceStart.equals("true")) {
+ if (forceStart) {
// TODO STARTING == LAZY, so start that also, STARTING is
// disabled, bundles with forceStart should not be LAZY
if (bundle.getState() == Bundle.RESOLVED/*
@@ -120,7 +120,7 @@ public class Activator extends Plugin {
return CONTEXT;
}
- public Logger getLogger(String name) {
+ public synchronized Logger getLogger(String name) {
if (logUtil == null) {
logUtil = new LogUtil(CONTEXT);
}