public abstract class XDIAbstractServer extends Object implements org.springframework.context.ApplicationContextAware, XDIServer
Modifier and Type | Field and Description |
---|---|
static String |
FALLBACK_APPLICATIONCONTEXT |
static String |
FALLBACK_SERVER_APPLICATIONCONTEXT |
Constructor and Description |
---|
XDIAbstractServer() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
static <T extends XDIAbstractServer> |
main(String[] args,
Class<? extends T> clazz) |
static <T extends XDIAbstractServer> |
newServer(org.springframework.context.ApplicationContext applicationContext,
Class<? extends T> clazz) |
static <T extends XDIAbstractServer> |
newServer(Class<? extends T> clazz) |
static <T extends XDIAbstractServer> |
newServer(org.springframework.core.io.Resource[] resources,
Class<? extends T> clazz) |
static <T extends XDIAbstractServer> |
newServer(org.springframework.core.io.Resource applicationContextResource,
org.springframework.core.io.Resource serverApplicationContextResource,
Class<? extends T> clazz) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStarted, startServer, stopServer
public static final String FALLBACK_APPLICATIONCONTEXT
public static final String FALLBACK_SERVER_APPLICATIONCONTEXT
public static <T extends XDIAbstractServer> void main(String[] args, Class<? extends T> clazz) throws Exception
Exception
public static <T extends XDIAbstractServer> T newServer(org.springframework.context.ApplicationContext applicationContext, Class<? extends T> clazz) throws Xdi2ServerException
Xdi2ServerException
public static <T extends XDIAbstractServer> T newServer(org.springframework.core.io.Resource[] resources, Class<? extends T> clazz) throws Xdi2ServerException
Xdi2ServerException
public static <T extends XDIAbstractServer> T newServer(org.springframework.core.io.Resource applicationContextResource, org.springframework.core.io.Resource serverApplicationContextResource, Class<? extends T> clazz) throws Xdi2ServerException
Xdi2ServerException
public static <T extends XDIAbstractServer> T newServer(Class<? extends T> clazz) throws Xdi2ServerException
Xdi2ServerException
protected void cleanup()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2017. All rights reserved.