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_NAME
APPLICATION_STARTUP_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Constructor and Description |
---|
SpringContext(Context restletContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getPropertyConfigRefs()
Returns the modifiable list of configuration URIs for beans definitions
via property representations.
|
Context |
getRestletContext()
Returns the parent Restlet context.
|
java.util.List<java.lang.String> |
getXmlConfigRefs()
Returns the modifiable list of configuration URIs for beans definitions
via XML representations.
|
void |
refresh() |
cancelRefresh, closeBeanFactory, getAutowireCapableBeanFactory, getBeanDefinition, getBeanFactory, getClassLoader, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBean, registerBean, registerBean, registerBean, registerBean, registerBean, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setApplicationStartup, setClassLoader, setParent, setResourceLoader
addApplicationListener, addBeanFactoryPostProcessor, assertBeanFactoryActive, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getApplicationStartup, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, registerBeanPostProcessors, registerListeners, registerShutdownHook, resetCommonCaches, setDisplayName, setEnvironment, setId, start, stop, toString
addProtocolResolver, clearResourceCaches, getProtocolResolvers, getResourceByPath, getResourceCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public SpringContext(Context restletContext)
restletContext
- The parent Restlet context.public java.util.List<java.lang.String> getPropertyConfigRefs()
public Context getRestletContext()
public java.util.List<java.lang.String> getXmlConfigRefs()
public void refresh()
refresh
in interface org.springframework.context.ConfigurableApplicationContext
refresh
in class org.springframework.context.support.AbstractApplicationContext
Copyright © 2005-2024 Restlet.