Skip navigation links
A C D F G I M O R S T W 

A

addDependency(Class<?>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Adds a mandatory dependency on the service specified by the class.
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.
addDependency(String, String) - 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, 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.
addOptionalDependency(String, String) - 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.ServiceCollector
The Bundle Context used by this ServiceCollector.
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.

F

filter - Variable in class de.mnl.osgi.coreutils.ServiceCollector
The Filter used by this ServiceCollector which s pecifies the search criteria for the services to collect.

G

get(String, Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the service found for the mandatory dependency with the given name.
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.

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(boolean) - Method in class de.mnl.osgi.coreutils.ServiceCollector
Starts collecting services.
open() - Method in class de.mnl.osgi.coreutils.ServiceResolver
Starts the resolver.
optional(String, Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the (optional) service found for the optional dependency with the given name.
optional(Class<T>) - Method in class de.mnl.osgi.coreutils.ServiceResolver
Returns the (optional) service found for the optional dependency, using the name of the class as name of the dependency.

R

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

S

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.
service() - Method in class de.mnl.osgi.coreutils.ServiceCollector
Returns a service object for one of the services 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, 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.
ServiceCollector(BundleContext, String) - Constructor for class de.mnl.osgi.coreutils.ServiceCollector
Instantiates a new ServiceCollector that collects services on the specified class name.
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(BundleContext) - Constructor for class de.mnl.osgi.coreutils.ServiceResolver
Creates a new resolver that uses the given context.
ServiceResolver() - Constructor for class de.mnl.osgi.coreutils.ServiceResolver
Constructor for using the ServiceResolver as base class for a BundleActivator.
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.
A C D F G I M O R S T W 
Skip navigation links