Package org.nuxeo.runtime.server
Class ServerComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.server.ServerComponent
- All Implemented Interfaces:
Adaptable
,Component
,Extensible
,TimestampedService
This component registers and configures an embedded servlet container.
The actual implementation is delegated to a specific embedded server by implementing the interface
ServerConfigurator
.
- Since:
- 10.2
-
Field Summary
Modifier and TypeFieldDescriptionprotected ServerConfigurator
protected static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(ComponentContext context) Activates the component.void
deactivate
(ComponentContext context) Deactivates the component.int
The component notification order forComponent.start(ComponentContext)
.void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.void
unregisterContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterExtension
-
Field Details
-
XP_WEB_APP
- See Also:
-
XP_SERVLET
- See Also:
-
XP_FILTER
- See Also:
-
XP_LISTENER
- See Also:
-
PORT_SYSTEM_PROP
- See Also:
-
CONFIGURATOR_CLASS
- See Also:
-
configurator
-
-
Constructor Details
-
ServerComponent
public ServerComponent()
-
-
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
-
deactivate
Description copied from interface:Component
Deactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interfaceComponent
- Overrides:
deactivate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
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.
- 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
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-