Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ public void start(BundleContext bc) throws Exception {

equinoxContainer.systemStart(bc);

plurl = new PlurlImpl();
try {
plurl = new PlurlImpl();
plurl.install();
URLStreamHandlerFactoryImpl ushf = new URLStreamHandlerFactoryImpl(bc, equinoxContainer);
ContentHandlerFactoryImpl chf = new ContentHandlerFactoryImpl(bc, equinoxContainer);
Plurl.add(ushf);
plurlStreamHandlerFactory = ushf;
Plurl.add(chf);
plurlContentHandlerFactory = chf;
} catch (Exception e) {
} catch (Throwable e) {
// Don't fail framework launch if we cannot register with plurl.
// Any handler services will get ignored for this framework instance.
equinoxContainer.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, e.getMessage(), e);
Expand Down Expand Up @@ -241,22 +241,22 @@ public void stop(BundleContext bc) throws Exception {
if (plurlStreamHandlerFactory != null) {
try {
Plurl.remove(plurlStreamHandlerFactory);
} catch (Exception e) {
} catch (Throwable e) {
bundle.getEquinoxContainer().getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR,
e.getMessage(), e);
}
}
if (plurlContentHandlerFactory != null) {
try {
Plurl.remove(plurlContentHandlerFactory);
} catch (Exception e) {
} catch (Throwable e) {
bundle.getEquinoxContainer().getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR,
e.getMessage(), e);
}
}
try {
plurl.uninstall();
} catch (Exception e) {
} catch (Throwable e) {
bundle.getEquinoxContainer().getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR,
e.getMessage(), e);
}
Expand Down
Loading