public class DefaultComponentRegistrar extends Object implements ComponentRegistrar
HOST_COMPONENT_FLAG| Constructor and Description |
|---|
DefaultComponentRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
List<HostComponentRegistration> |
getRegistry() |
InstanceBuilder |
register(Class<?>... mainInterfaces)
Starts the single host component registration by declaring it as implementing one or more interfaces
|
protected Object |
wrapService(Class<?>[] interfaces,
Object service)
Wraps the service in a dynamic proxy that ensures all methods are executed with the object class's class loader
as the context class loader
|
List<org.osgi.framework.ServiceRegistration> |
writeRegistry(org.osgi.framework.BundleContext ctx) |
public InstanceBuilder register(Class<?>... mainInterfaces)
ComponentRegistrarregister in interface ComponentRegistrarmainInterfaces - The list of interfaces this host component implementspublic List<org.osgi.framework.ServiceRegistration> writeRegistry(org.osgi.framework.BundleContext ctx)
public List<HostComponentRegistration> getRegistry()
protected Object wrapService(Class<?>[] interfaces, Object service)
interfaces - The interfaces to proxyservice - The instance to proxyCopyright © 2014 Atlassian. All rights reserved.