diff options
Diffstat (limited to 'bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/hooks/service/FindHook.java')
-rw-r--r-- | bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/hooks/service/FindHook.java | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/hooks/service/FindHook.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/hooks/service/FindHook.java index 4a939200f..45612d6a1 100644 --- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/hooks/service/FindHook.java +++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/hooks/service/FindHook.java @@ -1,5 +1,5 @@ /* - * Copyright (c) OSGi Alliance (2008, 2010). All Rights Reserved. + * Copyright (c) OSGi Alliance (2008, 2012). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.osgi.framework.hooks.service; import java.util.Collection; - import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; @@ -40,12 +39,12 @@ public interface FindHook { * * @param context The bundle context of the bundle performing the find * operation. - * @param name The class name of the services to find or {@code null} - * to find all services. - * @param filter The filter criteria of the services to find or - * {@code null} for no filter criteria. - * @param allServices {@code true} if the find operation is the result - * of a call to + * @param name The class name of the services to find or {@code null} to + * find all services. + * @param filter The filter criteria of the services to find or {@code null} + * for no filter criteria. + * @param allServices {@code true} if the find operation is the result of a + * call to * {@link BundleContext#getAllServiceReferences(String, String)} * @param references A collection of Service References to be returned as a * result of the find operation. The implementation of this method @@ -53,10 +52,9 @@ public interface FindHook { * references from being returned to the bundle performing the find * operation. The collection supports all the optional * {@code Collection} operations except {@code add} and - * {@code addAll}. Attempting to add to the collection will - * result in an {@code UnsupportedOperationException}. The - * collection is not synchronized. + * {@code addAll}. Attempting to add to the collection will result in + * an {@code UnsupportedOperationException}. The collection is not + * synchronized. */ - void find(BundleContext context, String name, String filter, - boolean allServices, Collection<ServiceReference< ? >> references); + void find(BundleContext context, String name, String filter, boolean allServices, Collection<ServiceReference<?>> references); } |