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 ServerConfiguratorconfiguratorprotected static StringCONFIGURATOR_CLASSstatic StringPORT_SYSTEM_PROPstatic StringXP_FILTERstatic StringXP_LISTENERstatic StringXP_SERVLETstatic StringXP_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 voidactivate(ComponentContext context)Activates the component.voiddeactivate(ComponentContext context)Deactivates the component.intgetApplicationStartedOrder()The component notification order forComponent.applicationStarted(org.nuxeo.runtime.model.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
-
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: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
public void deactivate(ComponentContext context)
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.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:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
public void stop(ComponentContext context)
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-
-