public class SpringContext extends 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
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
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, setResourceLoader
addApplicationListener, 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, toString
getClassLoader, getResourceByPath, setClassLoader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames
getAliases
getClassLoader
public 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 ConfigurableApplicationContext
refresh
in class AbstractApplicationContext
Copyright © 2005-2014 Restlet.