Package org.nuxeo.runtime.model
Interface ComponentInstance
- All Superinterfaces:
Adaptable
,ComponentContext
,Extensible
- All Known Implementing Classes:
ComponentInstanceImpl
A component instance is a proxy to the component implementation object.
Component instance objects are created each time a component is activated, and destroyed at component deactivation.
- Author:
- Bogdan Stefanescu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the implementation instance.void
Deactivates the implementation instance.void
destroy()
Destroys this instance.Gets the runtime context attached to this instance.Gets the actual component implementation instance.getName()
Gets the name of the component.String[]
Gets the list of provided services, or null if no service is provided.Gets the Registration Infovoid
start()
Starts the implementation instance.void
stop()
Stops the implementation instance.Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
Methods inherited from interface org.nuxeo.runtime.model.ComponentContext
getProperty, getPropertyNames, getPropertyValue, getPropertyValue, getRuntimeContext
Methods inherited from interface org.nuxeo.runtime.model.Extensible
registerExtension, unregisterExtension
-
Method Details
-
getInstance
Object getInstance()Gets the actual component implementation instance.- Returns:
- the component implementation instance
-
getName
ComponentName getName()Gets the name of the component.- Returns:
- the component name
-
getContext
RuntimeContext getContext()Gets the runtime context attached to this instance.- Returns:
- the runtime context
-
activate
void activate()Activates the implementation instance. -
start
void start()Starts the implementation instance.- Since:
- 9.3
-
stop
Stops the implementation instance.- Throws:
InterruptedException
- Since:
- 9.3
-
deactivate
void deactivate()Deactivates the implementation instance. -
destroy
void destroy()Destroys this instance. -
getProvidedServiceNames
String[] getProvidedServiceNames()Gets the list of provided services, or null if no service is provided.- Returns:
- an array containing the service class names or null if no service is provided
-
getRegistrationInfo
RegistrationInfo getRegistrationInfo()Gets the Registration Info- Returns:
- the registration info
- Since:
- 10.3
-