public class SpringContext
extends org.springframework.context.support.GenericApplicationContext
SpringContext springContext = new SpringContext(getContext());
springContext.getPropertyConfigRefs().add("war://config/database.properties");
springContext.getXmlConfigRefs().add("war://config/applicationContext.xml");
springContext.getXmlConfigRefs().add(
"file:///C/myApp/config/applicationContext.xml");
springContext.getXmlConfigRefs().add(
"clap://thread/config/applicationContext.xml");
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMECONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Constructor and Description |
|---|
SpringContext(Context restletContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPropertyConfigRefs()
Returns the modifiable list of configuration URIs for beans definitions
via property representations.
|
Context |
getRestletContext()
Returns the parent Restlet context.
|
List<String> |
getXmlConfigRefs()
Returns the modifiable list of configuration URIs for beans definitions
via XML representations.
|
void |
refresh() |
cancelRefresh, closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setId, setParent, setResourceLoaderaddApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, start, stop, toStringgetClassLoader, getResourceByPath, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SpringContext(Context restletContext)
restletContext - The parent Restlet context.public List<String> getPropertyConfigRefs()
public Context getRestletContext()
public List<String> getXmlConfigRefs()
public void refresh()
refresh in interface org.springframework.context.ConfigurableApplicationContextrefresh in class org.springframework.context.support.AbstractApplicationContextCopyright © 2005-2017 Restlet.