A C D G I M O R S T W 
All Classes All Packages

A

addDependency(Class<?>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds a mandatory dependency on the service specified by the class.
addDependency(String, String) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds a mandatory dependency on the service specified by the service reference.
addDependency(String, Filter) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds a mandatory dependency on the service specified by the filter.
addDependency(String, ServiceReference<?>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds a mandatory dependency on the service specified by the service reference.
addOptionalDependency(Class<?>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds an optional dependency on the service specified by the class.
addOptionalDependency(String, String) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds an optional dependency on the service specified by the service reference.
addOptionalDependency(String, Filter) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds an optional dependency on the service specified by the filter.
addOptionalDependency(String, ServiceReference<?>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds an optional dependency on the service specified by the service reference.

C

close() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Stops collecting services.
close() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Stops the resolver.
collected() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Return a SortedMap of the ServiceReferences and service objects for all services collected by this ServiceCollector.
configure() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Configures the ServiceResolver.
context - Variable in class de.mnl.osgi.coreutils.ServiceResolver
The bundle context.

D

de.mnl.osgi.coreutils - package de.mnl.osgi.coreutils
Various helper classes, depending only on OSGi Core.

G

get(Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the service found for the mandatory dependency using the name of the class as name of the dependency.
get(String, Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the service found for the mandatory dependency with the given name.
getContext() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Returns the context passed to the constructor.

I

isEmpty() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Return if this ServiceCollector is empty.
isOpen() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Checks if this ServiceCollector is open.
isOpen() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Checks if the resolver is open.
isResolved() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Checks if the resolver is in the resolved state.

M

modificationCount() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Returns the modification count for this ServiceCollector.

O

onDissolving() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Called when the resolver is about to leave the resolved state, i.e.
onRebound(String) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Called when the preferred service of a resolved dependency changes.
onResolved() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Called when all dependencies have been resolved.
open() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Starts collecting of service providers.
open() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Starts the resolver.
open(boolean) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Starts collecting services.
optional(Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the service found for the optional dependency using the name of the class as name of the dependency, if it exists.
optional(String, Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the service found for the optional dependency with the given name, if it exists.

R

remove(ServiceReference<S>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Remove a service from this ServiceCollector.

S

service() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Returns a service object for one of the services collected by this ServiceCollector.
service(ServiceReference<S>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Returns the service object for the specified ServiceReference if the specified referenced service has been collected by this ServiceCollector.
ServiceCollector<S,​T> - Class in de.mnl.osgi.coreutils
Maintains a collection of services matching some criteria.
ServiceCollector(BundleContext, Class<S>) - Constructor for class de.mnl.osgi.coreutils.ServiceCollector
Instantiates a new ServiceCollector that collects services of the specified class.
ServiceCollector(BundleContext, String) - Constructor for class de.mnl.osgi.coreutils.ServiceCollector
Instantiates a new ServiceCollector that collects services on the specified class name.
ServiceCollector(BundleContext, Filter) - Constructor for class de.mnl.osgi.coreutils.ServiceCollector
Instantiates a new ServiceCollector that collects services matches by the specified filter.
ServiceCollector(BundleContext, ServiceReference<S>) - Constructor for class de.mnl.osgi.coreutils.ServiceCollector
Instantiates a new ServiceCollector that collects services on the specified service reference.
serviceReference() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Returns a ServiceReference for one of the services collected by this ServiceCollector.
serviceReferences() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Return the current set of ServiceReferences for all services collected by this ServiceCollector.
ServiceResolver - Class in de.mnl.osgi.coreutils
Maintains and attempts to resolve dependencies on services.
ServiceResolver() - Constructor for class de.mnl.osgi.coreutils.ServiceResolver
Constructor for using the ServiceResolver as base class for a BundleActivator.
ServiceResolver(BundleContext) - Constructor for class de.mnl.osgi.coreutils.ServiceResolver
Creates a new resolver that uses the given context.
services() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Return the list of service objects for all services collected by this ServiceCollector.
setOnAdded(BiConsumer<ServiceReference<S>, T>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Sets a function to be called when a new service instance was added to the collection.
setOnBound(BiConsumer<ServiceReference<S>, T>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Sets a function to be called when the first service instance was added to the collection.
setOnDissolving(Runnable) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Sets the function to called when the resolver is about to leave the resolved state, i.e.
setOnModfied(BiConsumer<ServiceReference<S>, T>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Sets a function to be called when the preferred service changes.
setOnRebound(Consumer<String>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Sets the function to be called when the preferred service of a resolved dependency changes.
setOnRemoving(BiConsumer<ServiceReference<S>, T>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Sets a function to be called before one of the collected service instances becomes unavailable.
setOnResolved(Runnable) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Sets the function to called when the resolver has entered the resolved state, i.e.
setOnUnbinding(BiConsumer<ServiceReference<S>, T>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Sets a function to be called before the last of the collected service instances becomes unavailable.
setServiceGetter(BiFunction<BundleContext, ServiceReference<S>, T>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Sets the service getter function.
size() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Return the number of services collected by this ServiceCollector.
start(BundleContext) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Called by the framework when using the ServiceResolver as base class for a bundle activator.
stop(BundleContext) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Called by the framework when using the ServiceResolver as base class for a bundle activator.

T

toString() - Method in class de.mnl.osgi.coreutils.ServiceCollector
 

W

waitForService(long) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Wait for at least one service to be collected by this ServiceCollector.
with(Class<T>, Function<T, ? extends R>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Convenience method to invoke the a function with the service registered as mandatory or optional dependency while holding a lock on the underlying service collector.
with(String, Function<T, ? extends R>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Convenience method to invoke the a function with the service registered as mandatory or optional dependency while holding a lock on the underlying service collector.
withService(Function<T, ? extends R>) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Convenience method to invoke the a function with the result from ServiceCollector.service() (if it is available) while holding a lock on this service collector.
A C D G I M O R S T W 
All Classes All Packages