Class DefaultComponentRegistrar
java.lang.Object
com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar
- All Implemented Interfaces:
ComponentRegistrar
Default component registrar that also can write registered host components into the OSGi service registry.
-
Field Summary
Fields inherited from interface com.atlassian.plugin.osgi.hostcomponents.ComponentRegistrar
HOST_COMPONENT_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStarts the single host component registration by declaring it as implementing one or more interfacesList<org.osgi.framework.ServiceRegistration>writeRegistry(org.osgi.framework.BundleContext ctx)
-
Constructor Details
-
DefaultComponentRegistrar
public DefaultComponentRegistrar()
-
-
Method Details
-
register
Description copied from interface:ComponentRegistrarStarts the single host component registration by declaring it as implementing one or more interfaces- Specified by:
registerin interfaceComponentRegistrar- Parameters:
mainInterfaces- The list of interfaces this host component implements- Returns:
- The instance builder that will tie these interfaces with a host component instance
-
writeRegistry
public List<org.osgi.framework.ServiceRegistration> writeRegistry(org.osgi.framework.BundleContext ctx) -
getRegistry
-