|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.io.DefaultResourceLoader org.springframework.context.support.AbstractApplicationContext org.springframework.context.support.AbstractRefreshableApplicationContext org.springframework.context.support.AbstractXmlApplicationContext org.springframework.context.support.FileSystemXmlApplicationContext org.abstracthorizon.danube.http.spring.ResourceXmlApplicationContext
public class ResourceXmlApplicationContext
This application context extension allows resources to be created using supplied location (a resource).
Field Summary | |
---|---|
protected Resource |
location
Location to be used |
protected org.slf4j.Logger |
logger
Logger |
protected ResourceLoader |
resourceLoader
Resource loader |
Fields inherited from class org.springframework.context.support.AbstractApplicationContext |
---|
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, 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 | |
---|---|
ResourceXmlApplicationContext(String location,
String configLocation)
Consturctor |
|
ResourceXmlApplicationContext(String location,
String[] configLocations)
Constructor |
|
ResourceXmlApplicationContext(String location,
String[] configLocations,
ApplicationContext parent)
Constructor |
|
ResourceXmlApplicationContext(String location,
String[] configLocations,
boolean refresh)
Constructor |
|
ResourceXmlApplicationContext(String location,
String[] configLocations,
boolean refresh,
ApplicationContext parent)
Constructor |
Method Summary | |
---|---|
protected Resource |
getResourceByPath(String path)
Getting resource by given path |
protected Resource |
normaliseResource(Resource r)
This method normalises the resource adding final "/" to paths (not files) |
void |
setApplicationContext(ApplicationContext applicationContext)
Sets current application context bean is to be retrieved from |
Methods inherited from class org.springframework.context.support.FileSystemXmlApplicationContext |
---|
getConfigLocations |
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, getResource, 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, getResource |
Field Detail |
---|
protected org.slf4j.Logger logger
protected Resource location
protected ResourceLoader resourceLoader
Constructor Detail |
---|
public ResourceXmlApplicationContext(String location, String configLocation) throws BeansException
location
- location to be used for resourcesconfigLocation
- config locations
BeansException
public ResourceXmlApplicationContext(String location, String[] configLocations) throws BeansException
location
- location to be used for resourcesconfigLocations
- config locations
BeansException
public ResourceXmlApplicationContext(String location, String[] configLocations, boolean refresh) throws BeansException
location
- location to be used for resourcesconfigLocations
- config locations
BeansException
public ResourceXmlApplicationContext(String location, String[] configLocations, ApplicationContext parent) throws BeansException
location
- location to be used for resourcesconfigLocations
- config locationsparent
- parent application context
BeansException
public ResourceXmlApplicationContext(String location, String[] configLocations, boolean refresh, ApplicationContext parent) throws BeansException
location
- location to be used for resourcesconfigLocations
- config locationsrefresh
- to refresh in constructorparent
- parent context
BeansException
Method Detail |
---|
protected Resource getResourceByPath(String path)
getResourceByPath
in class FileSystemXmlApplicationContext
path
- path
protected Resource normaliseResource(Resource r)
r
- resource
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
applicationContext
- application context bean is to be retrieved from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |