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, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public 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)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public int getApplicationStartedOrder()
Component
Component.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)
Component
start
in interface Component
start
in class DefaultComponent
public void stop(ComponentContext context)
Component
stop
in interface Component
stop
in class DefaultComponent
public int getPort()
Copyright © 2018 Nuxeo. All rights reserved.