public class ServerComponent extends DefaultComponent
The actual implementation is delegated to a specific embedded server by implementing the interface
ServerConfigurator.
| Modifier and Type | Field and Description |
|---|---|
protected ServerConfigurator |
configurator |
protected static String |
CONFIGURATOR_CLASS |
protected int |
port |
static String |
PORT_SYSTEM_PROP |
static String |
XP_FILTER |
static String |
XP_LISTENER |
static String |
XP_SERVLET |
static String |
XP_WEB_APP |
lastModified, name| Constructor and Description |
|---|
ServerComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext). |
int |
getPort()
Gets the port which is used by the server.
|
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) |
getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedpublic static final String XP_WEB_APP
public static final String XP_SERVLET
public static final String XP_FILTER
public static final String XP_LISTENER
public static final String PORT_SYSTEM_PROP
protected static final String CONFIGURATOR_CLASS
protected ServerConfigurator configurator
protected int port
public ServerComponent()
public void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic int getApplicationStartedOrder()
ComponentComponent.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.
public void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void stop(ComponentContext context)
Componentstop in interface Componentstop in class DefaultComponentpublic int getPort()
Copyright © 2018 Nuxeo. All rights reserved.