com.atlassian.upm.license.compatibility
Class OptionalService<T>

java.lang.Object
  extended by 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

Constructor Summary
OptionalService(java.lang.Class<T> type)
           
 
Method Summary
 void destroy()
           
protected  org.osgi.framework.BundleContext getBundleContext()
           
protected  com.atlassian.upm.api.util.Option<T> getService()
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionalService

public OptionalService(java.lang.Class<T> type)
Method Detail

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.