public abstract class OptionalService<T> extends Object implements org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
OptionalService(org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
T |
getService()
Returns the service (of type
T) if it exists, or null if not |
public OptionalService(org.osgi.framework.BundleContext bundleContext)
public T getService()
T) if it exists, or null if notT) if it exists, or null if notpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2007–2015 Atlassian. All rights reserved.