com.atlassian.plugin.osgi.hostcomponents.impl
Class DefaultComponentRegistrar
java.lang.Object
com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar
- All Implemented Interfaces:
- ComponentRegistrar
public class DefaultComponentRegistrar
- extends java.lang.Object
- implements ComponentRegistrar
Default component registrar that also can write registered host components into the OSGi service registry.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultComponentRegistrar
public DefaultComponentRegistrar()
register
public InstanceBuilder register(java.lang.Class<?>... mainInterfaces)
- Description copied from interface:
ComponentRegistrar
- Starts the single host component registration by declaring it as implementing one or more interfaces
- Specified by:
register in interface ComponentRegistrar
- 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 java.util.List<org.osgi.framework.ServiceRegistration> writeRegistry(org.osgi.framework.BundleContext ctx)
getRegistry
public java.util.List<HostComponentRegistration> getRegistry()
Copyright © 2013 Atlassian. All Rights Reserved.