Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-08 19:17:38 +0000
committerThomas Watson2019-05-16 14:07:43 +0000
commit3b63527921acfe7c78cce6b84ab8e869ef17f230 (patch)
treed92a825232ce414f139b4ec862e628b1b57c35ca /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java
parent06d5ba9879305c04d1d7e5076d67a38af2ef3a66 (diff)
downloadrt.equinox.framework-3b63527921acfe7c78cce6b84ab8e869ef17f230.tar.gz
rt.equinox.framework-3b63527921acfe7c78cce6b84ab8e869ef17f230.tar.xz
rt.equinox.framework-3b63527921acfe7c78cce6b84ab8e869ef17f230.zip
Change-Id: I4ef764e744192dc3564ad053e8984e891aadfe44 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java
index 9a316f10f..c2d7209e3 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/FrameworkDebugOptions.java
@@ -120,6 +120,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
/**
* @see DebugOptions#getBooleanOption(String, boolean)
*/
+ @Override
public boolean getBooleanOption(String option, boolean defaultValue) {
String optionValue = getOption(option);
return optionValue != null ? optionValue.equalsIgnoreCase("true") : defaultValue; //$NON-NLS-1$
@@ -128,6 +129,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
/**
* @see DebugOptions#getOption(String)
*/
+ @Override
public String getOption(String option) {
return getOption(option, null);
}
@@ -135,6 +137,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
/**
* @see DebugOptions#getOption(String, String)
*/
+ @Override
public String getOption(String option, String defaultValue) {
synchronized (lock) {
if (options != null) {
@@ -147,6 +150,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
/**
* @see DebugOptions#getIntegerOption(String, int)
*/
+ @Override
public int getIntegerOption(String option, int defaultValue) {
String value = getOption(option);
try {
@@ -157,6 +161,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
}
@SuppressWarnings({"unchecked", "rawtypes"})
+ @Override
public Map<String, String> getOptions() {
Map<String, String> snapShot = new HashMap<>();
synchronized (lock) {
@@ -197,6 +202,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#removeOption(java.lang.String)
*/
+ @Override
public void removeOption(String option) {
if (option == null)
return;
@@ -216,6 +222,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#setOption(java.lang.String, java.lang.String)
*/
+ @Override
public void setOption(String option, String value) {
if (option == null || value == null) {
@@ -256,6 +263,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
}
@SuppressWarnings("cast")
+ @Override
public void setOptions(Map<String, String> ops) {
if (ops == null)
throw new IllegalArgumentException("The options must not be null."); //$NON-NLS-1$
@@ -306,6 +314,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#isDebugEnabled()
*/
+ @Override
public boolean isDebugEnabled() {
synchronized (lock) {
return options != null;
@@ -316,6 +325,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#setDebugEnabled()
*/
+ @Override
public void setDebugEnabled(boolean enabled) {
boolean fireChangedEvent = false;
synchronized (lock) {
@@ -359,6 +369,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#createTrace(java.lang.String)
*/
+ @Override
public final DebugTrace newDebugTrace(String bundleSymbolicName) {
return this.newDebugTrace(bundleSymbolicName, null);
@@ -368,6 +379,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#createTrace(java.lang.String, java.lang.Class)
*/
+ @Override
public final DebugTrace newDebugTrace(String bundleSymbolicName, Class<?> traceEntryClass) {
DebugTrace debugTrace = null;
@@ -385,6 +397,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#getFile()
*/
+ @Override
public final File getFile() {
return this.outFile;
@@ -394,6 +407,7 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
* (non-Javadoc)
* @see org.eclipse.osgi.service.debug.DebugOptions#setFile(java.io.File)
*/
+ @Override
public void setFile(final File traceFile) {
synchronized (lock) {
this.outFile = traceFile;
@@ -478,16 +492,19 @@ public class FrameworkDebugOptions implements DebugOptions, ServiceTrackerCustom
}
}
+ @Override
public DebugOptionsListener addingService(ServiceReference<DebugOptionsListener> reference) {
DebugOptionsListener listener = context.getService(reference);
listener.optionsChanged(this);
return listener;
}
+ @Override
public void modifiedService(ServiceReference<DebugOptionsListener> reference, DebugOptionsListener service) {
// nothing
}
+ @Override
public void removedService(ServiceReference<DebugOptionsListener> reference, DebugOptionsListener service) {
context.ungetService(reference);
}

Back to the top