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
FieldsModifier and TypeFieldDescriptionprotected ServerConfiguratorprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ComponentContext context) Activates the component.voiddeactivate(ComponentContext context) Deactivates the component.intThe component notification order forComponent.start(ComponentContext).voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) voidstart(ComponentContext context) Start the component.voidstop(ComponentContext context) Stop the component.voidunregisterContribution(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:ComponentActivates the component.This method is called by the runtime when a component is activated.
- Specified by:
activatein interfaceComponent- Overrides:
activatein classDefaultComponent- Parameters:
context- the runtime context
-
deactivate
Description copied from interface:ComponentDeactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivatein interfaceComponent- Overrides:
deactivatein classDefaultComponent- Parameters:
context- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:ComponentThe 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:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-