com.atlassian.upm.license.compatibility
Class OptionalService<T>
java.lang.Object
com.atlassian.upm.license.compatibility.OptionalService<T>
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.osgi.context.BundleContextAware
- Direct Known Subclasses:
- UpmCompatiblePluginLicenseManagerFactory
public abstract class OptionalService<T>
- extends java.lang.Object
- implements org.springframework.osgi.context.BundleContextAware, org.springframework.beans.factory.DisposableBean
An optional service that may or may not exist.
- Since:
- 2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionalService
public OptionalService(java.lang.Class<T> type)
getService
protected final com.atlassian.upm.api.util.Option<T> getService()
destroy
public final void destroy()
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
setBundleContext
public final void setBundleContext(org.osgi.framework.BundleContext bundleContext)
- Specified by:
setBundleContext in interface org.springframework.osgi.context.BundleContextAware
getBundleContext
protected org.osgi.framework.BundleContext getBundleContext()
Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.