Class OsgiService
java.lang.Object
com.atlassian.jira.component.spring.osgi.OsgiService
A Jira component to be registered as an OSGi service or service factory.
-
Constructor Summary
ConstructorsConstructorDescriptionOsgiService(Object instance, Set<Class> interfaces) Constructor for an OSGi service that implements one or more interfaces.OsgiService(Object instance, Set<Class> interfaces, boolean trackBundle) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe actual component instance.The interfaces exported by this component.inthashCode()booleanEnables Bundle Tracking for the OSGi service.
-
Constructor Details
-
OsgiService
Constructor for an OSGi service that implements one or more interfaces.- Parameters:
instance- the service instanceinterfaces- the interfaces under which it is to be registered with OSGi
-
OsgiService
-
-
Method Details
-
getInstance
The actual component instance.- Returns:
- the instance
-
getInterfaces
The interfaces exported by this component.- Returns:
- an immutable set
-
isTrackBundle
public boolean isTrackBundle()Enables Bundle Tracking for the OSGi service. i.e. for the service to determine which bundle called it.- Returns:
- true if the bundle should be tracked
-
hashCode
public int hashCode() -
equals
-