Package org.nuxeo.runtime.capabilities
Class CapabilitiesServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.capabilities.CapabilitiesServiceImpl
- All Implemented Interfaces:
CapabilitiesService
,Adaptable
,Component
,Extensible
,TimestampedService
- Since:
- 11.5
-
Field Summary
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(ComponentContext context) Activates the component.int
The component notification order forComponent.start(ComponentContext)
.Returns the capabilities.void
Registers capabilities under the givenname
.void
registerCapabilities
(String name, Map<String, Object> map) Registers capabilities under the givenname
.void
start
(ComponentContext context) Start the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterContribution, unregisterExtension
-
Field Details
-
CAPABILITY_SERVER
- See Also:
-
capabilitiesSuppliers
-
-
Constructor Details
-
CapabilitiesServiceImpl
public CapabilitiesServiceImpl()
-
-
Method Details
-
activate
Description copied from interface:Component
Activates the component.This method is called by the runtime when a component is activated.
- Specified by:
activate
in interfaceComponent
- Overrides:
activate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:Component
The component notification order forComponent.start(ComponentContext)
.Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
- Specified by:
getApplicationStartedOrder
in interfaceComponent
- Returns:
- the order, 1000 by default
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
getServerCapabilities
-
registerCapabilities
Description copied from interface:CapabilitiesService
Registers capabilities under the givenname
.- Specified by:
registerCapabilities
in interfaceCapabilitiesService
- See Also:
-
registerCapabilities
Description copied from interface:CapabilitiesService
Registers capabilities under the givenname
.The given
Supplier
is called each timeCapabilitiesService.getCapabilities()
is called.Capabilities might be registered during the Component start step.
- Specified by:
registerCapabilities
in interfaceCapabilitiesService
-
getCapabilities
Description copied from interface:CapabilitiesService
Returns the capabilities.- Specified by:
getCapabilities
in interfaceCapabilitiesService
-