| java.lang.Object |
| ↳ |
com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar |
Class Overview
Default component registrar that also can write registered host components into the OSGi service registry.
Summary
| Protected Methods |
|
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
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.plugin.osgi.hostcomponents.ComponentRegistrar
|
abstract
InstanceBuilder
|
register(Class...<?> mainInterfaces)
Starts the single host component registration by declaring it as implementing one or more interfaces
|
|
Public Constructors
public
DefaultComponentRegistrar
()
Public Methods
public
InstanceBuilder
register
(Class...<?> mainInterfaces)
Starts the single host component registration by declaring it as implementing one or more interfaces
Parameters
| mainInterfaces
| The list of interfaces this host component implements |
Returns
- The instance builder that will tie these interfaces with a host component instance
public
List<ServiceRegistration>
writeRegistry
(BundleContext ctx)
Protected Methods
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
Parameters
| interfaces
| The interfaces to proxy |
| service
| The instance to proxy |
Returns
- A proxy that wraps the service