A B C D E F G H I J K L M N O P Q R S T U V W

A

AbstractDecorator<S> - Class in org.ops4j.peaberry.util
Skeletal implementation to simplify development of ImportDecorators.
AbstractDecorator() - Constructor for class org.ops4j.peaberry.util.AbstractDecorator
 
AbstractServiceImport<T> - Class in org.ops4j.peaberry.cache
Partial Import implementation with generation based caching.
AbstractServiceImport() - Constructor for class org.ops4j.peaberry.cache.AbstractServiceImport
 
AbstractServiceListener<T> - Class in org.ops4j.peaberry.cache
Keep track of imported, sortable services that provide a specific interface.
AbstractServiceListener() - Constructor for class org.ops4j.peaberry.cache.AbstractServiceListener
 
AbstractServiceRegistry - Class in org.ops4j.peaberry.cache
Partial ServiceRegistry implementation with generation based caching.
AbstractServiceRegistry(boolean) - Constructor for class org.ops4j.peaberry.cache.AbstractServiceRegistry
 
AbstractWatcher<S> - Class in org.ops4j.peaberry.util
Skeletal implementation to simplify development of ServiceWatchers.
AbstractWatcher() - Constructor for class org.ops4j.peaberry.util.AbstractWatcher
 
acquireService() - Method in class org.ops4j.peaberry.cache.AbstractServiceImport
 
Activator - Class in org.ops4j.peaberry.osgi
OSGi BundleActivator that manages a cleanup thread for peaberry.
Activator() - Constructor for class org.ops4j.peaberry.osgi.Activator
 
Activator.ImportManager - Class in org.ops4j.peaberry.osgi
Cleans up registered CachingServiceRegistrys at a fixed interval.
Activator.ImportManager(BundleContext, int, int, Iterable<CachingServiceRegistry>) - Constructor for class org.ops4j.peaberry.osgi.Activator.ImportManager
 
add(Import<T>) - Method in class org.ops4j.peaberry.cache.FilteredServiceWatcher
 
add(Import<T>) - Method in class org.ops4j.peaberry.cache.RegistryChain
 
add(Import<T>) - Method in class org.ops4j.peaberry.osgi.OSGiServiceRegistry
 
add(Import<T>) - Method in interface org.ops4j.peaberry.ServiceWatcher
Add the given service to this watcher.
add(Import<T>) - Method in class org.ops4j.peaberry.util.AbstractWatcher
 
adding(Import<S>) - Method in class org.ops4j.peaberry.util.AbstractWatcher
Notification that a service has been added to this watcher.
AttributeDictionary - Class in org.ops4j.peaberry.osgi
Lazy read-only Dictionary backed by a service attribute map.
AttributeDictionary(Map<String, ?>) - Constructor for class org.ops4j.peaberry.osgi.AttributeDictionary
 
AttributeFilter - Interface in org.ops4j.peaberry
Simple matching filter for service attributes.
attributes(Key<? extends Map<String, ?>>) - Method in interface org.ops4j.peaberry.builders.QualifiedServiceBuilder
Apply the given attributes to the dynamic service.
attributes(Map<String, ?>) - Method in interface org.ops4j.peaberry.builders.QualifiedServiceBuilder
Apply the given attributes to the dynamic service.
attributes(Map<String, ?>) - Method in interface org.ops4j.peaberry.Export
Update the attributes associated with the exported service.
attributes() - Method in interface org.ops4j.peaberry.Import
Get the attributes associated with the service.
attributes(Key<? extends Map<String, ?>>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
attributes(Map<String, ?>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
Attributes - Class in org.ops4j.peaberry.util
Methods for dealing with service attributes.
attributes() - Method in class org.ops4j.peaberry.util.DelegatingImport
 
attributes(Map<String, ?>) - Static method in class org.ops4j.peaberry.util.Filters
Create an AttributeFilter based on the given service attributes.
attributes() - Method in class org.ops4j.peaberry.util.SimpleExport
 
attributes(Map<String, ?>) - Method in class org.ops4j.peaberry.util.SimpleExport
 
attributes() - Method in class org.ops4j.peaberry.util.StaticImport
 
available() - Method in class org.ops4j.peaberry.cache.AbstractServiceImport
 
available() - Method in interface org.ops4j.peaberry.Import
Is the service instance available?
available() - Method in class org.ops4j.peaberry.util.DelegatingImport
 
available() - Method in class org.ops4j.peaberry.util.SimpleExport
 
available() - Method in class org.ops4j.peaberry.util.StaticImport
 

B

BundleScoped - Annotation Type in org.ops4j.peaberry
Apply this to implementation classes when you want only one instance (per BundleContext) to be reused for all injections for that binding.

C

CACHE_GENERATIONS_HINT - Static variable in class org.ops4j.peaberry.Peaberry
Name of system property ("org.ops4j.peaberry.cache.generations") suggests the number of flushes before an unused service is released.
CACHE_INTERVAL_HINT - Static variable in class org.ops4j.peaberry.Peaberry
Name of system property ("org.ops4j.peaberry.cache.interval") suggests the time in milliseconds between flushes of the service cache.
CachingServiceRegistry - Interface in org.ops4j.peaberry.cache
ServiceRegistry that caches service instances for faster lookup.
Chain - Annotation Type in org.ops4j.peaberry.cache
 
chain(ImportDecorator...) - Static method in class org.ops4j.peaberry.util.Decorators
An ImportDecorator that applies decorators in a chain, right-left.
clear() - Method in class jsr166y.ConcurrentReferenceHashMap
Removes all of the mappings from this map.
ConcurrentReferenceHashMap<K,V> - Class in jsr166y
An advanced hash table supporting configurable garbage collection semantics of keys and values, optional referential-equality, full concurrency of retrievals, and adjustable expected concurrency for updates.
ConcurrentReferenceHashMap(int, float, int, ConcurrentReferenceHashMap.ReferenceType, ConcurrentReferenceHashMap.ReferenceType, EnumSet<ConcurrentReferenceHashMap.Option>) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty map with the specified initial capacity, reference types, load factor and concurrency level.
ConcurrentReferenceHashMap(int, float, int) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty map with the specified initial capacity, load factor and concurrency level.
ConcurrentReferenceHashMap(int, float) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty map with the specified initial capacity and load factor and with the default reference types (weak keys, strong values), and concurrencyLevel (16).
ConcurrentReferenceHashMap(int, ConcurrentReferenceHashMap.ReferenceType, ConcurrentReferenceHashMap.ReferenceType) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty map with the specified initial capacity, reference types and with default load factor (0.75) and concurrencyLevel (16).
ConcurrentReferenceHashMap(ConcurrentReferenceHashMap.ReferenceType, ConcurrentReferenceHashMap.ReferenceType) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty reference map with the specified key and value reference types.
ConcurrentReferenceHashMap(ConcurrentReferenceHashMap.ReferenceType, ConcurrentReferenceHashMap.ReferenceType, EnumSet<ConcurrentReferenceHashMap.Option>) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty reference map with the specified reference types and behavioral options.
ConcurrentReferenceHashMap(int) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty map with the specified initial capacity, and with default reference types (weak keys, strong values), load factor (0.75) and concurrencyLevel (16).
ConcurrentReferenceHashMap() - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new, empty map with a default initial capacity (16), reference types (weak keys, strong values), default load factor (0.75) and concurrencyLevel (16).
ConcurrentReferenceHashMap(Map<? extends K, ? extends V>) - Constructor for class jsr166y.ConcurrentReferenceHashMap
Creates a new map with the same mappings as the given map.
ConcurrentReferenceHashMap.Option - Enum in jsr166y
 
ConcurrentReferenceHashMap.ReferenceType - Enum in jsr166y
An option specifying which Java reference type should be used to refer to a key and/or value.
configure() - Method in class org.ops4j.peaberry.osgi.OSGiModule
 
contains(Object) - Method in class jsr166y.ConcurrentReferenceHashMap
Legacy method testing if some key maps into the specified value in this table.
containsKey(Object) - Method in class jsr166y.ConcurrentReferenceHashMap
Tests if the specified object is a key in this table.
containsValue(Object) - Method in class jsr166y.ConcurrentReferenceHashMap
Returns true if this map maps one or more keys to the specified value.
createListener(String) - Method in class org.ops4j.peaberry.cache.AbstractServiceRegistry
 
createListener(String) - Method in class org.ops4j.peaberry.osgi.OSGiServiceRegistry
 

D

decorate(Import<T>) - Method in interface org.ops4j.peaberry.builders.ImportDecorator
Decorate the given imported service.
decorate(Import<T>) - Method in class org.ops4j.peaberry.util.AbstractDecorator
 
decorate(S, Map<String, ?>) - Method in class org.ops4j.peaberry.util.AbstractDecorator
Decorate the current service instance.
decorate(Import<T>) - Method in class org.ops4j.peaberry.util.decorators.DecoratorChain
 
decorate(Import<T>) - Method in class org.ops4j.peaberry.util.decorators.InterceptingDecorator
 
decorate(Import<T>) - Method in class org.ops4j.peaberry.util.decorators.StickyDecorator
 
DecoratedServiceBuilder<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.
decoratedWith(Key<? extends ImportDecorator<? super T>>) - Method in interface org.ops4j.peaberry.builders.DecoratedServiceBuilder
Apply the given decoration to the dynamic service.
decoratedWith(ImportDecorator<? super T>) - Method in interface org.ops4j.peaberry.builders.DecoratedServiceBuilder
Apply the given decoration to the dynamic service.
decoratedWith(Key<? extends ImportDecorator<? super T>>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
decoratedWith(ImportDecorator<? super T>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
DecoratorChain<S> - Class in org.ops4j.peaberry.util.decorators
An ImportDecorator that applies decorators in a chain, right-left.
DecoratorChain(ImportDecorator<S>...) - Constructor for class org.ops4j.peaberry.util.decorators.DecoratorChain
 
Decorators - Class in org.ops4j.peaberry.util
Methods for creating various general purpose ImportDecorators.
DelegatingImport<T> - Class in org.ops4j.peaberry.util
A simple Import that always delegates to another Import.
DelegatingImport(Import<T>) - Constructor for class org.ops4j.peaberry.util.DelegatingImport
Create a new Import that delegates to the given Import.
direct() - Method in interface org.ops4j.peaberry.builders.DirectProvider
 
DirectProvider<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.

E

elements() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns an enumeration of the values in this table.
elements() - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
entrySet() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns a Set view of the mappings contained in this map.
equals(Object) - Method in class org.ops4j.peaberry.cache.FilteredServiceWatcher
 
equals(Object) - Method in class org.ops4j.peaberry.cache.ImmutableAttribute
 
equals(Object) - Method in class org.ops4j.peaberry.cache.RegistryChain
 
equals(Object) - Method in class org.ops4j.peaberry.osgi.OSGiServiceRegistry
 
equals(Object) - Method in class org.ops4j.peaberry.util.ldap.LdapAttributeFilter
 
export() - Method in interface org.ops4j.peaberry.builders.ServiceBuilder
 
Export<T> - Interface in org.ops4j.peaberry
Handle to a service instance exported to a ServiceWatcher.
export() - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
export(Class<T>) - Static method in class org.ops4j.peaberry.util.TypeLiterals
Create TypeLiteral matching an exported handle of the given type.
ExportProvider<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.

F

filter(Key<? extends AttributeFilter>) - Method in interface org.ops4j.peaberry.builders.QualifiedServiceBuilder
Apply the given filter to the dynamic service.
filter(AttributeFilter) - Method in interface org.ops4j.peaberry.builders.QualifiedServiceBuilder
Apply the given filter to the dynamic service.
filter(Key<? extends AttributeFilter>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
filter(AttributeFilter) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
FilteredServiceWatcher<S> - Class in org.ops4j.peaberry.cache
Pre-filtered ServiceWatcher that handles mutable services.
FilteredServiceWatcher(AttributeFilter, ServiceWatcher<S>) - Constructor for class org.ops4j.peaberry.cache.FilteredServiceWatcher
 
Filters - Class in org.ops4j.peaberry.util
Methods for dealing with AttributeFilters.
flush(int) - Method in class org.ops4j.peaberry.cache.AbstractServiceRegistry
 
flush(int) - Method in interface org.ops4j.peaberry.cache.CachingServiceRegistry
Release any unused service instances from the cache.

G

get(Object) - Method in class jsr166y.ConcurrentReferenceHashMap
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
get() - Method in class org.ops4j.peaberry.cache.AbstractServiceImport
 
get() - Method in interface org.ops4j.peaberry.Import
Start using the imported service instance.
get(Object) - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
get() - Method in class org.ops4j.peaberry.util.DelegatingImport
 
get() - Method in class org.ops4j.peaberry.util.SimpleExport
 
get() - Method in class org.ops4j.peaberry.util.StaticImport
 
getKey() - Method in class org.ops4j.peaberry.cache.ImmutableAttribute
 
getValue() - Method in class org.ops4j.peaberry.cache.ImmutableAttribute
 

H

hashCode() - Method in class org.ops4j.peaberry.cache.FilteredServiceWatcher
 
hashCode() - Method in class org.ops4j.peaberry.cache.ImmutableAttribute
 
hashCode() - Method in class org.ops4j.peaberry.cache.RegistryChain
 
hashCode() - Method in class org.ops4j.peaberry.osgi.OSGiServiceRegistry
 
hashCode() - Method in class org.ops4j.peaberry.util.ldap.LdapAttributeFilter
 
hasRankingChanged() - Method in class org.ops4j.peaberry.cache.AbstractServiceImport
 

I

ImmutableAttribute - Class in org.ops4j.peaberry.cache
Snapshot of an entry from a service attribute map.
ImmutableAttribute(String, Object) - Constructor for class org.ops4j.peaberry.cache.ImmutableAttribute
 
Import<T> - Interface in org.ops4j.peaberry
Handle to a service instance imported from a ServiceRegistry.
ImportDecorator<S> - Interface in org.ops4j.peaberry.builders
Provide runtime decoration/intercepting of imported services.
in(Key<? extends ServiceRegistry>) - Method in interface org.ops4j.peaberry.builders.InjectedServiceBuilder
Inject the dynamic service from a specific registry.
in(ServiceRegistry) - Method in interface org.ops4j.peaberry.builders.InjectedServiceBuilder
Inject the dynamic service from a specific registry.
in(Key<? extends ServiceRegistry>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
in(ServiceRegistry) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
InjectedServiceBuilder<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.
insertService(AbstractServiceImport<T>) - Method in class org.ops4j.peaberry.cache.AbstractServiceListener
 
intercept(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Static method in class org.ops4j.peaberry.util.Decorators
An ImportDecorator that supports MethodInterceptors.
InterceptingDecorator<S> - Class in org.ops4j.peaberry.util.decorators
An ImportDecorator that supports MethodInterceptors.
InterceptingDecorator(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Constructor for class org.ops4j.peaberry.util.decorators.InterceptingDecorator
 
isEmpty() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns true if this map contains no key-value mappings.
isEmpty() - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
iterable(Class<T>) - Static method in class org.ops4j.peaberry.util.TypeLiterals
Create TypeLiteral matching an iterable sequence of the given type.

J

jsr166y - package jsr166y
 

K

keys() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns an enumeration of the keys in this table.
keys() - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
keySet() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns a Set view of the keys contained in this map.

L

ldap(String) - Static method in class org.ops4j.peaberry.util.Filters
Create an AttributeFilter based on the given LDAP filter string.
LdapAttributeFilter - Class in org.ops4j.peaberry.util.ldap
Implementation of LDAP AttributeFilter, uses code from Apache Felix.
LdapAttributeFilter(String) - Constructor for class org.ops4j.peaberry.util.ldap.LdapAttributeFilter
 
lookup(Class<T>, AttributeFilter) - Method in class org.ops4j.peaberry.cache.AbstractServiceRegistry
 
lookup(Class<T>, AttributeFilter) - Method in class org.ops4j.peaberry.cache.RegistryChain
 
lookup(Class<T>, AttributeFilter) - Method in interface org.ops4j.peaberry.ServiceRegistry
Lookup services from the registry, constrained by the given filter.

M

matches(Map<String, ?>) - Method in interface org.ops4j.peaberry.AttributeFilter
Tests whether or not this filter matches the given service attributes.
matches(Map<String, ?>) - Method in class org.ops4j.peaberry.util.ldap.LdapAttributeFilter
 
modified(S, Map<String, ?>) - Method in class org.ops4j.peaberry.util.AbstractWatcher
Notification that some service attributes have been modified.
multiple() - Method in interface org.ops4j.peaberry.builders.ServiceBuilder
 
multiple() - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 

N

names(String...) - Static method in class org.ops4j.peaberry.util.Attributes
Convert the given LDAP distinguished names into a service attribute map.
NATIVE_FILTER_HINT - Static variable in class org.ops4j.peaberry.Peaberry
Name of system property ("org.ops4j.peaberry.filter.native") suggests using AttributeFilter.toString() as native filter.

O

objectClass(Class<?>...) - Static method in class org.ops4j.peaberry.util.Attributes
Create an objectClass service attribute from the given API.
objectClass(Class<?>...) - Static method in class org.ops4j.peaberry.util.Filters
Create an objectClass AttributeFilter from the given API.
org.ops4j.peaberry - package org.ops4j.peaberry
peaberry - Dynamic services for Google-Guice.
org.ops4j.peaberry.builders - package org.ops4j.peaberry.builders
Fluent APIs for importing and exporting dynamic services.
org.ops4j.peaberry.cache - package org.ops4j.peaberry.cache
ServiceRegistry caching support.
org.ops4j.peaberry.internal - package org.ops4j.peaberry.internal
Implementation of peaberry.
org.ops4j.peaberry.osgi - package org.ops4j.peaberry.osgi
OSGi ServiceRegistry implementation.
org.ops4j.peaberry.util - package org.ops4j.peaberry.util
Optional helper methods.
org.ops4j.peaberry.util.decorators - package org.ops4j.peaberry.util.decorators
General purpose ImportDecorators.
org.ops4j.peaberry.util.ldap - package org.ops4j.peaberry.util.ldap
Implementation of LDAP helpers.
OSGiModule - Class in org.ops4j.peaberry.osgi
OSGi specific Guice binding Module.
OSGiModule(BundleContext, ServiceRegistry...) - Constructor for class org.ops4j.peaberry.osgi.OSGiModule
 
OSGiModule(ServiceRegistry...) - Constructor for class org.ops4j.peaberry.osgi.OSGiModule
 
osgiModule(BundleContext) - Static method in class org.ops4j.peaberry.Peaberry
Create a new Guice binding Module for the given bundle context.
osgiModule(BundleContext, ServiceRegistry...) - Static method in class org.ops4j.peaberry.Peaberry
Create a new Guice binding Module for the given bundle context along with a list of additional ServiceRegistrys to query when injecting or watching for services.
osgiModule(ServiceRegistry...) - Static method in class org.ops4j.peaberry.Peaberry
Create a new Guice binding Module that uses an externally bound bundle context along with a list of additional ServiceRegistrys to query when injecting or watching for services.
OSGiServiceRegistry - Class in org.ops4j.peaberry.osgi
OSGi ServiceRegistry implementation.
OSGiServiceRegistry(BundleContext) - Constructor for class org.ops4j.peaberry.osgi.OSGiServiceRegistry
 
out(Key<? extends ServiceWatcher<? super T>>) - Method in interface org.ops4j.peaberry.builders.OutjectedServiceBuilder
Outject the dynamic service to the given watcher.
out(ServiceWatcher<? super T>) - Method in interface org.ops4j.peaberry.builders.OutjectedServiceBuilder
Outject the dynamic service to the given watcher.
out(Key<? extends ServiceWatcher<? super T>>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
out(ServiceWatcher<? super T>) - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
OutjectedServiceBuilder<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.

P

Peaberry - Class in org.ops4j.peaberry
Guice extension that supports injection and outjection of dynamic services.
properties(Properties) - Static method in class org.ops4j.peaberry.util.Attributes
Convert the given service properties into a service attribute map.
ProxyProvider<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.
purgeStaleEntries() - Method in class jsr166y.ConcurrentReferenceHashMap
Removes any stale entries whose keys have been finalized.
put(K, V) - Method in class jsr166y.ConcurrentReferenceHashMap
Maps the specified key to the specified value in this table.
put(T) - Method in interface org.ops4j.peaberry.Export
Replace the exported service with the given instance.
put(String, Object) - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
put(T) - Method in class org.ops4j.peaberry.util.SimpleExport
 
putAll(Map<? extends K, ? extends V>) - Method in class jsr166y.ConcurrentReferenceHashMap
Copies all of the mappings from the specified map to this one.
putIfAbsent(K, V) - Method in class jsr166y.ConcurrentReferenceHashMap

Q

QualifiedServiceBuilder<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.

R

RegistryChain - Class in org.ops4j.peaberry.cache
A ServiceRegistry that delegates to a series of other registries.
RegistryChain(ServiceRegistry, ServiceRegistry[]) - Constructor for class org.ops4j.peaberry.cache.RegistryChain
 
releaseService(T) - Method in class org.ops4j.peaberry.cache.AbstractServiceImport
 
remove(Object) - Method in class jsr166y.ConcurrentReferenceHashMap
Removes the key (and its corresponding value) from this map.
remove(Object, Object) - Method in class jsr166y.ConcurrentReferenceHashMap
remove(Object) - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
removed(S) - Method in class org.ops4j.peaberry.util.AbstractWatcher
Notification that a service has been removed from this watcher.
removeService(Import<T>) - Method in class org.ops4j.peaberry.cache.AbstractServiceListener
 
replace(K, V, V) - Method in class jsr166y.ConcurrentReferenceHashMap
replace(K, V) - Method in class jsr166y.ConcurrentReferenceHashMap
run() - Method in class org.ops4j.peaberry.osgi.Activator.ImportManager
 

S

service(Key<T>) - Static method in class org.ops4j.peaberry.Peaberry
Start building a dynamic service provider for the given key.
service(TypeLiteral<T>) - Static method in class org.ops4j.peaberry.Peaberry
Start building a dynamic service provider for the given type.
service(Class<T>) - Static method in class org.ops4j.peaberry.Peaberry
Start building a dynamic service provider for the given class.
service(T) - Static method in class org.ops4j.peaberry.Peaberry
Start building a dynamic service provider for the given instance.
ServiceBuilder<T> - Interface in org.ops4j.peaberry.builders
See Peaberry for examples of the dynamic service builder API.
ServiceBuilderImpl<T> - Class in org.ops4j.peaberry.internal
Default DecoratedServiceBuilder implementation.
ServiceBuilderImpl(Key<T>) - Constructor for class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
ServiceBuilderImpl(T) - Constructor for class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
ServiceException - Exception in org.ops4j.peaberry
General purpose service exception.
ServiceException() - Constructor for exception org.ops4j.peaberry.ServiceException
Constructs a ServiceException with no message or cause.
ServiceException(String) - Constructor for exception org.ops4j.peaberry.ServiceException
Constructs a ServiceException with a specific message.
ServiceException(Throwable) - Constructor for exception org.ops4j.peaberry.ServiceException
Constructs a ServiceException with a specific cause.
ServiceException(String, Throwable) - Constructor for exception org.ops4j.peaberry.ServiceException
Constructs a ServiceException with message and cause.
ServiceRegistry - Interface in org.ops4j.peaberry
A registry is a ServiceWatcher that allows lookup of services.
ServiceUnavailableException - Exception in org.ops4j.peaberry
Exception thrown when a requested service is not available.
ServiceUnavailableException() - Constructor for exception org.ops4j.peaberry.ServiceUnavailableException
Constructs a ServiceUnavailableException with no message or cause.
ServiceUnavailableException(String) - Constructor for exception org.ops4j.peaberry.ServiceUnavailableException
Constructs a ServiceUnavailableException with a specific message.
ServiceUnavailableException(Throwable) - Constructor for exception org.ops4j.peaberry.ServiceUnavailableException
Constructs a ServiceUnavailableException with a specific cause.
ServiceUnavailableException(String, Throwable) - Constructor for exception org.ops4j.peaberry.ServiceUnavailableException
Constructs a ServiceUnavailableException with message and cause.
ServiceWatcher<S> - Interface in org.ops4j.peaberry
A service watcher can receive services provided by other registries.
setCacheGeneration(int) - Static method in class org.ops4j.peaberry.cache.AbstractServiceImport
 
setValue(Object) - Method in class org.ops4j.peaberry.cache.ImmutableAttribute
 
SimpleExport<T> - Class in org.ops4j.peaberry.util
A basic mutable Export derived from a single dynamic Import.
SimpleExport(Import<T>) - Constructor for class org.ops4j.peaberry.util.SimpleExport
Create a new Export from the given Import.
single() - Method in interface org.ops4j.peaberry.builders.ServiceBuilder
 
single() - Method in class org.ops4j.peaberry.internal.ServiceBuilderImpl
 
size() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns the number of key-value mappings in this map.
size() - Method in class org.ops4j.peaberry.osgi.AttributeDictionary
 
start() - Method in class org.ops4j.peaberry.cache.AbstractServiceListener
 
start(BundleContext) - Method in class org.ops4j.peaberry.osgi.Activator
 
StaticImport<T> - Class in org.ops4j.peaberry.util
An Import consisting of a fixed instance and optional attribute map.
StaticImport(T) - Constructor for class org.ops4j.peaberry.util.StaticImport
Create a static Import for the given instance.
StaticImport(T, Map<String, ?>) - Constructor for class org.ops4j.peaberry.util.StaticImport
Create a static Import for the given instance and attribute map.
sticky(Callable<Boolean>) - Static method in class org.ops4j.peaberry.util.Decorators
An ImportDecorator that caches the first valid service instance and uses that until it becomes invalid.
StickyDecorator<S> - Class in org.ops4j.peaberry.util.decorators
An ImportDecorator that caches the first valid service instance and uses that until it becomes invalid.
StickyDecorator(Callable<Boolean>) - Constructor for class org.ops4j.peaberry.util.decorators.StickyDecorator
 
stop(BundleContext) - Method in class org.ops4j.peaberry.osgi.Activator
 

T

toString() - Method in class org.ops4j.peaberry.cache.RegistryChain
 
toString() - Method in class org.ops4j.peaberry.osgi.OSGiServiceRegistry
 
toString() - Method in class org.ops4j.peaberry.util.ldap.LdapAttributeFilter
 
TypeLiterals - Class in org.ops4j.peaberry.util
Methods for creating TypeLiterals that can be used with peaberry.

U

unget() - Method in class org.ops4j.peaberry.cache.AbstractServiceImport
 
unget() - Method in interface org.ops4j.peaberry.Import
Stop using the imported service instance.
unget() - Method in class org.ops4j.peaberry.util.DelegatingImport
 
unget() - Method in class org.ops4j.peaberry.util.SimpleExport
 
unget() - Method in class org.ops4j.peaberry.util.StaticImport
 
union(Map...) - Static method in class org.ops4j.peaberry.util.Attributes
Create a union of all the services attributes passed into this method.
unput() - Method in interface org.ops4j.peaberry.Export
Remove the exported service from the ServiceWatcher.
unput() - Method in class org.ops4j.peaberry.util.SimpleExport
 
updateService(AbstractServiceImport<T>) - Method in class org.ops4j.peaberry.cache.AbstractServiceListener
 

V

valueOf(String) - Static method in enum jsr166y.ConcurrentReferenceHashMap.Option
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum jsr166y.ConcurrentReferenceHashMap.ReferenceType
Returns the enum constant of this type with the specified name.
values() - Static method in enum jsr166y.ConcurrentReferenceHashMap.Option
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum jsr166y.ConcurrentReferenceHashMap.ReferenceType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class jsr166y.ConcurrentReferenceHashMap
Returns a Collection view of the values contained in this map.

W

watch(Class<T>, AttributeFilter, ServiceWatcher<? super T>) - Method in class org.ops4j.peaberry.cache.AbstractServiceRegistry
 
watch(Class<T>, AttributeFilter, ServiceWatcher<? super T>) - Method in class org.ops4j.peaberry.cache.RegistryChain
 
watch(Class<T>, AttributeFilter, ServiceWatcher<? super T>) - Method in interface org.ops4j.peaberry.ServiceRegistry
Watch for services in the registry, constrained by the given filter.

A B C D E F G H I J K L M N O P Q R S T U V W

Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.