|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.AbstractRefreshableApplicationContext
org.springframework.context.support.AbstractXmlApplicationContext
org.abstracthorizon.extend.support.spring.server.SpringBasedServerApplicationContext
public class SpringBasedServerApplicationContext
Servers application context
| Field Summary | |
|---|---|
static String |
SERVER_CONFIG
Server config protocol url |
protected static int |
SERVER_CONFIG_LEN
Server config protocol url len |
static String |
SERVER_DATA
Server data protocol url |
protected static int |
SERVER_DATA_LEN
Server data protocol url len |
static String |
SERVER_DEPLOY
Server deploy protocol url |
protected static int |
SERVER_DEPLOY_LEN
Server deploy protocol url len |
static String |
SERVER_LOCATION
Server location protocol url |
protected static int |
SERVER_LOCATION_LEN
Server location protocol url len |
static String |
SERVER_PREFIX
Server protocol url prefix |
protected URL |
serverConfigFile
Server's config file location |
protected URL |
serverConfigLocation
Server's config location |
protected URL |
serverDataLocation
Server's data location |
protected URL |
serverDeployLocation
Server's deploy location |
protected URL |
serverLocation
Server's location |
| Fields inherited from class org.springframework.context.support.AbstractApplicationContext |
|---|
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME |
| Fields inherited from interface org.springframework.beans.factory.BeanFactory |
|---|
FACTORY_BEAN_PREFIX |
| Fields inherited from interface org.springframework.beans.factory.BeanFactory |
|---|
FACTORY_BEAN_PREFIX |
| Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
|---|
CLASSPATH_ALL_URL_PREFIX |
| Fields inherited from interface org.springframework.core.io.ResourceLoader |
|---|
CLASSPATH_URL_PREFIX |
| Constructor Summary | |
|---|---|
SpringBasedServerApplicationContext()
Empty constructor |
|
SpringBasedServerApplicationContext(URL serverLocation)
Constructor |
|
| Method Summary | |
|---|---|
protected String[] |
getConfigLocations()
Returns server's config location |
Resource |
getResource(String location)
Returns resource. |
URL |
getServerConfigFile()
Returns server's config file |
URL |
getServerConfigLocation()
Returns server's config location |
URL |
getServerDataLocation()
Returns server's data location |
URL |
getServerDeployLocation()
Returns server's deploy location |
URL |
getServerLocation()
Returns server's location |
protected Resource |
makeURLResource(URL url,
String location)
Creates URL resource |
void |
refresh()
Sets class loader from this classes class loader |
void |
setServerConfigFile(URL serverConfigFile)
Sets server's config file |
void |
setServerConfigLocation(URL serverConfigLocation)
Sets server's config location |
void |
setServerDataLocation(URL serverDataLocation)
Sets server's data location |
void |
setServerDeployLocation(URL serverDeployLocation)
Sets server's deploy location |
void |
setServerLocation(URL serverLocation)
Sets server's location |
| Methods inherited from class org.springframework.context.support.AbstractXmlApplicationContext |
|---|
getConfigResources, initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitions |
| Methods inherited from class org.springframework.context.support.AbstractRefreshableApplicationContext |
|---|
closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, refreshBeanFactory |
| Methods inherited from class org.springframework.core.io.DefaultResourceLoader |
|---|
getClassLoader, getResourceByPath, setClassLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.core.io.ResourceLoader |
|---|
getClassLoader |
| Field Detail |
|---|
public static final String SERVER_PREFIX
public static final String SERVER_LOCATION
protected static final int SERVER_LOCATION_LEN
public static final String SERVER_DATA
protected static final int SERVER_DATA_LEN
public static final String SERVER_DEPLOY
protected static final int SERVER_DEPLOY_LEN
public static final String SERVER_CONFIG
protected static final int SERVER_CONFIG_LEN
protected URL serverLocation
protected URL serverConfigLocation
protected URL serverConfigFile
protected URL serverDataLocation
protected URL serverDeployLocation
| Constructor Detail |
|---|
public SpringBasedServerApplicationContext()
public SpringBasedServerApplicationContext(URL serverLocation)
serverConfigLocation - server's config location| Method Detail |
|---|
public void refresh()
refresh in interface ConfigurableApplicationContextrefresh in class AbstractApplicationContextprotected String[] getConfigLocations()
getConfigLocations in class AbstractXmlApplicationContextpublic URL getServerLocation()
public void setServerLocation(URL serverLocation)
serverLocation - server's locationpublic URL getServerConfigLocation()
public void setServerConfigLocation(URL serverConfigLocation)
serverConfigLocation - server's config locationpublic URL getServerConfigFile()
public void setServerConfigFile(URL serverConfigFile)
serverConfigFile - server's config filepublic URL getServerDataLocation()
public void setServerDataLocation(URL serverDataLocation)
serverDataLocation - server's data locationpublic URL getServerDeployLocation()
public void setServerDeployLocation(URL serverDeployLocation)
serverDataLocation - server's deploy locationpublic Resource getResource(String location)
getResource in interface ResourceLoadergetResource in class DefaultResourceLoader
protected Resource makeURLResource(URL url,
String location)
throws MalformedURLException
url - url
MalformedURLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||