public class ComponentInstanceImpl extends Object implements ComponentInstance
| Modifier and Type | Class and Description |
|---|---|
protected class |
ComponentInstanceImpl.OSGiServiceFactory |
| Modifier and Type | Field and Description |
|---|---|
protected List<ComponentInstanceImpl.OSGiServiceFactory> |
factories |
protected Object |
instance |
protected RegistrationInfo |
ri |
| Constructor and Description |
|---|
ComponentInstanceImpl(RegistrationInfo ri) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the implementation instance.
|
void |
create() |
protected Object |
createInstance() |
void |
deactivate()
Deactivates the implementation instance.
|
void |
destroy()
Destroys this instance.
|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class associated with this object.
|
RuntimeContext |
getContext()
Gets the runtime context attached to this instance.
|
Object |
getInstance()
Gets the actual component implementation instance.
|
ComponentName |
getName()
Gets the name of the component.
|
Property |
getProperty(String property) |
String[] |
getPropertyNames() |
Object |
getPropertyValue(String property) |
Object |
getPropertyValue(String property,
Object defValue) |
String[] |
getProvidedServiceNames()
Gets the list of provided services, or null if no service is provided.
|
RegistrationInfo |
getRegistrationInfo()
Gets the Registration Info
|
RuntimeContext |
getRuntimeContext() |
protected void |
handleError(String message,
Exception e) |
void |
registerExtension(Extension extension)
Registers the given extension.
|
void |
registerServices()
Register provided services as OSGi services
|
void |
reload()
Deprecated.
since 9.3, but in fact since 5.6, only usage in
RegistrationInfoImpl |
void |
start()
Starts the implementation instance.
|
void |
stop()
Stops the implementation instance.
|
String |
toString() |
void |
unregisterExtension(Extension extension)
Unregisters the given extension.
|
void |
unregisterServices() |
protected RegistrationInfo ri
protected List<ComponentInstanceImpl.OSGiServiceFactory> factories
public ComponentInstanceImpl(RegistrationInfo ri)
public Object getInstance()
ComponentInstancegetInstance in interface ComponentInstancepublic void create()
protected Object createInstance()
public void destroy()
ComponentInstancedestroy in interface ComponentInstancepublic RuntimeContext getContext()
ComponentInstancegetContext in interface ComponentInstancepublic ComponentName getName()
ComponentInstancegetName in interface ComponentInstancepublic void activate()
ComponentInstanceactivate in interface ComponentInstancepublic void deactivate()
ComponentInstancedeactivate in interface ComponentInstancepublic void start()
ComponentInstancestart in interface ComponentInstancepublic void stop() throws InterruptedException
ComponentInstancestop in interface ComponentInstanceInterruptedException@Deprecated public void reload()
RegistrationInfoImplComponentInstancereload in interface ComponentInstancepublic void registerExtension(Extension extension)
ExtensibleregisterExtension in interface Extensibleextension - the extension to registerpublic void unregisterExtension(Extension extension)
ExtensibleunregisterExtension in interface Extensibleextension - the extension to unregisterprotected void handleError(String message, Exception e)
public <T> T getAdapter(Class<T> adapter)
Adaptablenull
if no such object can be found.getAdapter in interface Adaptableadapter - the adapter class to look upnull if this object does not have an adapter for
the given classpublic String[] getPropertyNames()
getPropertyNames in interface ComponentContextpublic Property getProperty(String property)
getProperty in interface ComponentContextpublic RuntimeContext getRuntimeContext()
getRuntimeContext in interface ComponentContextpublic Object getPropertyValue(String property)
getPropertyValue in interface ComponentContextpublic Object getPropertyValue(String property, Object defValue)
getPropertyValue in interface ComponentContextpublic String[] getProvidedServiceNames()
ComponentInstancegetProvidedServiceNames in interface ComponentInstancepublic void registerServices()
public void unregisterServices()
public RegistrationInfo getRegistrationInfo()
ComponentInstancegetRegistrationInfo in interface ComponentInstanceCopyright © 2019 Nuxeo. All rights reserved.