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
public class ServerComponent extends DefaultComponent
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
Fields Modifier and Type Field Description protected ServerConfigurator
configurator
protected static String
CONFIGURATOR_CLASS
static String
PORT_SYSTEM_PROP
static String
XP_FILTER
static String
XP_LISTENER
static String
XP_SERVLET
static String
XP_WEB_APP
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description ServerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(ComponentContext context)
Activates the component.void
deactivate(ComponentContext context)
Deactivates the component.int
getApplicationStartedOrder()
The component notification order forComponent.applicationStarted(org.nuxeo.runtime.model.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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted
-
-
-
-
Field Detail
-
XP_WEB_APP
public static final String XP_WEB_APP
- See Also:
- Constant Field Values
-
XP_SERVLET
public static final String XP_SERVLET
- See Also:
- Constant Field Values
-
XP_FILTER
public static final String XP_FILTER
- See Also:
- Constant Field Values
-
XP_LISTENER
public static final String XP_LISTENER
- See Also:
- Constant Field Values
-
PORT_SYSTEM_PROP
public static final String PORT_SYSTEM_PROP
- See Also:
- Constant Field Values
-
CONFIGURATOR_CLASS
protected static final String CONFIGURATOR_CLASS
- See Also:
- Constant Field Values
-
configurator
protected ServerConfigurator configurator
-
-
Method Detail
-
activate
public void activate(ComponentContext context)
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
public void deactivate(ComponentContext context)
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.applicationStarted(org.nuxeo.runtime.model.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
public void start(ComponentContext context)
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
public void stop(ComponentContext context)
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
-