A B C F G I L M N O P R S T U V X

## A

addingService(ServiceReference<T>) - Method in class org.apache.sling.commons.osgi.SortingServiceTracker

## B

bind(T, Map<String, Object>) - Method in class org.apache.sling.commons.osgi.RankedServices
  Handle bind service event.
BND_LAST_MODIFIED - Static variable in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
  Name of the BND attribute that provides the bundle's last modified timestamp
BND_LAST_MODIFIED_MISSING - Static variable in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
  Value for `BundleVersionInfo.getBundleLastModified()` if corresponding header is not present
BSNRenamer - Class in org.apache.sling.commons.osgi
  Processes a bundle file by changing its Bundle-SymbolicName.
BSNRenamer(File, File, String) - Constructor for class org.apache.sling.commons.osgi.BSNRenamer
BUNDLE_SYMBOLIC_NAME - Static variable in class org.apache.sling.commons.osgi.BSNRenamer
BUNDLE_VERSION - Static variable in class org.apache.sling.commons.osgi.BSNRenamer
BundleBundleVersionInfo - Class in org.apache.sling.commons.osgi.bundleversion
  BundleVersionInfo based on a Bundle object
BundleBundleVersionInfo(Bundle) - Constructor for class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
BundleFileProcessor - Class in org.apache.sling.commons.osgi
  The `BundleFileProcessor` can transform a bundle Manifest by creating a modified copy of the bundle file.
BundleFileProcessor(File, File) - Constructor for class org.apache.sling.commons.osgi.BundleFileProcessor
BundleVersionInfo<T> - Class in org.apache.sling.commons.osgi.bundleversion
  Provides bundle version information, which can be extracted from bundle files or Bundle objects.
BundleVersionInfo() - Constructor for class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo

## C

changed() - Method in interface org.apache.sling.commons.osgi.RankedServices.ChangeListener
  Is called when the list of ranked services was changed due to bundle bindings/unbindings.
compareTo(BundleVersionInfo<?>) - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
  Compare based on bundle version info, and for snapshots based on `BundleVersionInfo.getBundleLastModified()`
createEvent(Bundle, ServiceReference, String, Map<String, Object>) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Create an osgi event with the given topic and properties.

## F

FileBundleVersionInfo - Class in org.apache.sling.commons.osgi.bundleversion
  BundleVersionInfo based on a bundle jar file
FileBundleVersionInfo(File) - Constructor for class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo

## G

get() - Method in class org.apache.sling.commons.osgi.RankedServices
  Deprecated.
  Use `RankedServices.getList()` instead
getAttributes() - Method in interface org.apache.sling.commons.osgi.ManifestHeader.Entry
getAttributes() - Method in class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
getAttributeValue(String) - Method in interface org.apache.sling.commons.osgi.ManifestHeader.Entry
getAttributeValue(String) - Method in class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
getBundleLastModified() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
getBundleLastModified() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
  Return the bundle last modification time, based on the BND_LAST_MODIFIED manifest header, if available.
getBundleLastModified() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
getBundleSymbolicName() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
getBundleSymbolicName() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
getBundleSymbolicName() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
getComparableForServiceRanking(Map<String, Object>) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Create a comparable object out of the service properties.
getComparableForServiceRanking(Map<String, Object>) - Static method in class org.apache.sling.commons.osgi.ServiceUtil
  Deprecated.
  Use `ServiceUtil.getComparableForServiceRanking(Map, Order)` instead.
getComparableForServiceRanking(Map<String, Object>, Order) - Static method in class org.apache.sling.commons.osgi.ServiceUtil
  Create a comparable object out of the service properties.
getDirectives() - Method in interface org.apache.sling.commons.osgi.ManifestHeader.Entry
getDirectives() - Method in class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
getDirectiveValue(String) - Method in interface org.apache.sling.commons.osgi.ManifestHeader.Entry
getDirectiveValue(String) - Method in class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
getEntries() - Method in class org.apache.sling.commons.osgi.ManifestHeader
getList() - Method in class org.apache.sling.commons.osgi.RankedServices
  Lists all services registered in OSGi, sorted by service ranking (either ascending or descending depending on the order given in the constructor).
getName() - Method in class org.apache.sling.commons.osgi.ManifestHeader.NameValuePair
getProperty(Object, double) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  since 2.0.4, use `OsgiUtil.toDouble(Object, double)` instead
getSortedServiceReferences() - Method in class org.apache.sling.commons.osgi.SortingServiceTracker
  Return a sorted list of the services references.
getSortedServices() - Method in class org.apache.sling.commons.osgi.SortingServiceTracker
  Return a sorted list of the services.
getSource() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
getSource() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
getSource() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
getTargetFilename(Manifest) - Method in class org.apache.sling.commons.osgi.BSNRenamer
getTargetFilename(Manifest) - Method in class org.apache.sling.commons.osgi.BundleFileProcessor
  Return the filename to use for the newly created bundle file
getValue() - Method in interface org.apache.sling.commons.osgi.ManifestHeader.Entry
getValue() - Method in class org.apache.sling.commons.osgi.ManifestHeader.NameValuePair
getValue() - Method in class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
getVersion() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
getVersion() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
getVersion() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
greaterThan - Variable in enum org.apache.sling.commons.osgi.Order

## I

init(ManifestHeader.NameValuePair[], ManifestHeader.NameValuePair[]) - Method in class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
isBundle() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
isBundle() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
isBundle() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
isSnapshot() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleBundleVersionInfo
isSnapshot() - Method in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
isSnapshot() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
iterator() - Method in class org.apache.sling.commons.osgi.RankedServices
  Iterates all services registered in OSGi, sorted by service ranking (either ascending or descending depending on the order given in the constructor).

## L

lessThan - Variable in enum org.apache.sling.commons.osgi.Order

## M

ManifestHeader - Class in org.apache.sling.commons.osgi
  This is a helper class to parse manifest header entries.
ManifestHeader() - Constructor for class org.apache.sling.commons.osgi.ManifestHeader
ManifestHeader.Entry - Interface in org.apache.sling.commons.osgi
  A header can have several entries separated by comma.
ManifestHeader.NameValuePair - Class in org.apache.sling.commons.osgi
  Directives and attributes are simple name/value pairs.
ManifestHeader.PathImpl - Class in org.apache.sling.commons.osgi
modifiedService(ServiceReference<T>, T) - Method in class org.apache.sling.commons.osgi.SortingServiceTracker

## N

NameValuePair(String, String) - Constructor for class org.apache.sling.commons.osgi.ManifestHeader.NameValuePair

## O

Order - Enum in org.apache.sling.commons.osgi
  Order for services being sorted by `ServiceUtil.getComparableForServiceRanking(java.util.Map, Order)` or `RankedServices`.
org.apache.sling.commons.osgi - package org.apache.sling.commons.osgi
org.apache.sling.commons.osgi.bundleversion - package org.apache.sling.commons.osgi.bundleversion
OsgiUtil - Class in org.apache.sling.commons.osgi
  Deprecated.
  Use `org.osgi.util.converter.Converters` and `ServiceUtil` instead
OsgiUtil() - Constructor for class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.

## P

parse(String) - Static method in class org.apache.sling.commons.osgi.ManifestHeader
  Parse headers Like this: path; path; dir1:=dirval1; dir2:=dirval2; attr1=attrval1; attr2=attrval2, path; path; dir1:=dirval1; dir2:=dirval2; attr1=attrval1; attr2=attrval2 The returned object maintains the order of entries (paths), directives and attributes.
PathImpl(String) - Constructor for class org.apache.sling.commons.osgi.ManifestHeader.PathImpl
process() - Method in class org.apache.sling.commons.osgi.BundleFileProcessor
  Creates a new OSGi Bundle from a given bundle, processing its manifest using the processManifest method.
processManifest(Manifest) - Method in class org.apache.sling.commons.osgi.BSNRenamer
processManifest(Manifest) - Method in class org.apache.sling.commons.osgi.BundleFileProcessor
  Process the bundle Manifest.
PropertiesUtil - Class in org.apache.sling.commons.osgi
  Deprecated.
  Use `org.osgi.util.converter.Converters` instead
PropertiesUtil() - Constructor for class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.

## R

RankedServices<T> - Class in org.apache.sling.commons.osgi
  Helper class that collects all services registered via OSGi bind/unbind methods.
RankedServices() - Constructor for class org.apache.sling.commons.osgi.RankedServices
  Deprecated.
  Use `RankedServices.RankedServices(Order)` to explicitly give the order.
RankedServices(RankedServices.ChangeListener) - Constructor for class org.apache.sling.commons.osgi.RankedServices
  Deprecated.
  Use `RankedServices.RankedServices(Order order, ChangeListener changeListener)` instead
RankedServices(Order) - Constructor for class org.apache.sling.commons.osgi.RankedServices
  Instantiate without change listener but with a given order.
RankedServices(Order, RankedServices.ChangeListener) - Constructor for class org.apache.sling.commons.osgi.RankedServices
  Instantiate with change listener.
RankedServices.ChangeListener - Interface in org.apache.sling.commons.osgi
  Notification for changes on services list.
removedService(ServiceReference<T>, T) - Method in class org.apache.sling.commons.osgi.SortingServiceTracker

## S

ServiceUtil - Class in org.apache.sling.commons.osgi
  The `ServiceUtil` is a utility class providing some useful utility methods for service handling.
ServiceUtil() - Constructor for class org.apache.sling.commons.osgi.ServiceUtil
SNAPSHOT_MARKER - Static variable in class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo
  Marker used by Maven to identify snapshots
SortingServiceTracker<T> - Class in org.apache.sling.commons.osgi
  Implementation providing a sorted list of services by service ranking.
SortingServiceTracker(BundleContext, String) - Constructor for class org.apache.sling.commons.osgi.SortingServiceTracker
  Constructor

## T

toBoolean(Object, boolean) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the boolean value of the parameter or the `defaultValue` if the parameter is `null`.
toBoolean(Object, boolean) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the boolean value of the parameter or the `defaultValue` if the parameter is `null`.
toDouble(Object, double) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as a double or the `defaultValue` if the parameter is `null` or if the parameter is not a `Double` and cannot be converted to a `Double` from the parameter's string value.
toDouble(Object, double) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as a double or the `defaultValue` if the parameter is `null` or if the parameter is not a `Double` and cannot be converted to a `Double` from the parameter's string value.
toInteger(Object, int) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as an integer or the `defaultValue` if the parameter is `null` or if the parameter is not an `Integer` and cannot be converted to an `Integer` from the parameter's string value.
toInteger(Object, int) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as an integer or the `defaultValue` if the parameter is `null` or if the parameter is not an `Integer` and cannot be converted to an `Integer` from the parameter's string value.
toLong(Object, long) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as a long or the `defaultValue` if the parameter is `null` or if the parameter is not a `Long` and cannot be converted to a `Long` from the parameter's string value.
toLong(Object, long) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as a long or the `defaultValue` if the parameter is `null` or if the parameter is not a `Long` and cannot be converted to a `Long` from the parameter's string value.
toMap(Object, String[]) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as a map with string keys and string values.
toObject(Object) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as a single value.
toObject(Object) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as a single value.
toString() - Method in class org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
toString(Object, String) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as a string or the `defaultValue` if the parameter is `null`.
toString(Object, String) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as a string or the `defaultValue` if the parameter is `null`.
toStringArray(Object) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as an array of Strings.
toStringArray(Object, String[]) - Static method in class org.apache.sling.commons.osgi.OsgiUtil
  Deprecated.
  Returns the parameter as an array of Strings.
toStringArray(Object) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as an array of Strings.
toStringArray(Object, String[]) - Static method in class org.apache.sling.commons.osgi.PropertiesUtil
  Deprecated.
  Returns the parameter as an array of Strings.

## U

unbind(T, Map<String, Object>) - Method in class org.apache.sling.commons.osgi.RankedServices
  Handle unbind service event.

## V

valueOf(String) - Static method in enum org.apache.sling.commons.osgi.Order
  Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.sling.commons.osgi.Order
  Returns an array containing the constants of this enum type, in the order they are declared.

## X

X_ORIG_BSN - Static variable in class org.apache.sling.commons.osgi.BSNRenamer

A B C F G I L M N O P R S T U V X