diff options
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java b/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java index b05223052e..932de4e787 100644 --- a/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java +++ b/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java @@ -204,9 +204,10 @@ public class VaadinResourceTrackerComponent { */ @Activate protected void activate() throws NamespaceException { - for(Delegate registration : resourceToRegistration.values()) { + for (Delegate registration : resourceToRegistration.values()) { registration.init(httpService); - httpService.registerResources(registration.alias, registration.path, registration); + httpService.registerResources(registration.alias, registration.path, + registration); } } @@ -215,10 +216,11 @@ public class VaadinResourceTrackerComponent { */ @Deactivate protected void deactivate() { - for(final Delegate registration : resourceToRegistration.values()) { + for (final Delegate registration : resourceToRegistration.values()) { unregisterResource(registration); } - for(List<ServiceRegistration<? extends OsgiVaadinResource>> registrations : contributorToRegistrations.values()) { + for (List<ServiceRegistration<? extends OsgiVaadinResource>> registrations : contributorToRegistrations + .values()) { for (ServiceRegistration<? extends OsgiVaadinResource> reg : registrations) { reg.unregister(); } @@ -263,7 +265,8 @@ public class VaadinResourceTrackerComponent { private void registerResource(String alias, String path, Bundle bundle, Long serviceId) { - resourceToRegistration.put(serviceId, new Delegate(alias, path, bundle)); + resourceToRegistration.put(serviceId, + new Delegate(alias, path, bundle)); } private void unregisterResource(Long serviceId) { |