public class PathSharingContext
extends org.springframework.context.support.FileSystemXmlApplicationContext
ConfigFile.obtainReader()
). The token ${launchId} will be
interpolated in configuration-relative paths (see
ConfigPathConfigurer
) so that launch-specific paths can be used for
logs, reports, warcs, etc.Modifier and Type | Field and Description |
---|---|
protected HashMap<String,org.springframework.validation.Errors> |
allErrors |
protected File |
currentLaunchDir |
protected String |
currentLaunchId |
protected ConcurrentHashMap<Object,Object> |
data |
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Constructor and Description |
---|
PathSharingContext(String configLocation) |
PathSharingContext(String[] configLocations) |
PathSharingContext(String[] configLocations,
org.springframework.context.ApplicationContext parent) |
PathSharingContext(String[] configLocations,
boolean refresh) |
PathSharingContext(String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent) |
Modifier and Type | Method and Description |
---|---|
HashMap<String,org.springframework.validation.Errors> |
getAllErrors() |
protected File |
getConfigurationFile() |
File |
getCurrentLaunchDir() |
String |
getCurrentLaunchId() |
ConcurrentHashMap<Object,Object> |
getData() |
String |
getPrimaryConfigurationPath() |
protected void |
initLaunchDir() |
protected void |
initLaunchId() |
protected void |
initLifecycleProcessor()
Initialize the LifecycleProcessor.
|
void |
start() |
void |
validate() |
getResourceByPath
getConfigResources, initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitions, setValidating
afterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setId
cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences
addApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getResources, getStartupDate, getType, initApplicationEventMulticaster, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setParent, stop, toString
getClassLoader, getResource, setClassLoader
protected transient String currentLaunchId
protected transient File currentLaunchDir
protected ConcurrentHashMap<Object,Object> data
public PathSharingContext(String configLocation) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public PathSharingContext(String[] configLocations, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public PathSharingContext(String[] configLocations, boolean refresh, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public PathSharingContext(String[] configLocations, boolean refresh) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public PathSharingContext(String[] configLocations) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public String getPrimaryConfigurationPath()
public void validate()
public void start()
start
in interface org.springframework.context.Lifecycle
start
in class org.springframework.context.support.AbstractApplicationContext
protected void initLaunchId()
public String getCurrentLaunchId()
public File getCurrentLaunchDir()
protected File getConfigurationFile()
protected void initLaunchDir()
protected void initLifecycleProcessor()
initLifecycleProcessor
in class org.springframework.context.support.AbstractApplicationContext
DefaultLifecycleProcessor
public ConcurrentHashMap<Object,Object> getData()
Copyright © 2003-2014 Internet Archive. All Rights Reserved.