|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.core.context.ModuleApplicationContextUtils
public class ModuleApplicationContextUtils
This class allows excluding some items out of a file list.
| Constructor Summary | |
|---|---|
ModuleApplicationContextUtils(ApplicationContext context)
Creates a new instance that is connected to the given application contet. |
|
| Method Summary | |
|---|---|
String[] |
calculateInputFiles(String[] inclusiveConfigLocations,
String[] exclusiveConfigLocations,
boolean allowBeanDefinitionOverriding)
Calculate the array of xml configuration files which are loaded into the ApplicationContext, i.e. exclude the xml files in inclusiveFileNames which are in exclusiveFileNames. |
protected void |
checkConfigLocations(String configLocation)
Check whether the 'classpath*:mandatory/*.xml' config location is loaded. |
protected OrderedBeanNameHolder |
getOrderedBeanNameHolder(ConfigurableListableBeanFactory beanFactory,
String orderedBeanName)
Returns a ordered bean name holder for the given bean. |
protected List<String> |
getResolvedFileNames(String[] unresolvedFileNames)
Changes the syntax of the pathnames, i.e. filepaths beginning with "file:$Drive" and not with "file:/$Drive" are changed and "\" characters are changed to "/". |
protected void |
invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory beanFactory,
List<OrderedBeanNameHolder> postProcessorHolders)
Invoke the given BeanFactoryPostProcessor beans. |
void |
invokeBeanFactoryPostProcessorsStrictlyOrdered(ConfigurableListableBeanFactory beanFactory)
All bean factory post processors of the given bean factory will be created and invoked in strict order. |
boolean |
isReverseConfigLocationResourceArray()
|
protected String[] |
resolveAttribute(String path)
Resolves a path (i.e. file- or classpath) by applying Ant-style path matching. |
void |
setReverseConfigLocationResourceArray(boolean reverseConfigLocationResourceArray)
Flag to indicate if the resource array of a config location should be reversed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleApplicationContextUtils(ApplicationContext context)
context - The application context to connect to.| Method Detail |
|---|
public String[] calculateInputFiles(String[] inclusiveConfigLocations,
String[] exclusiveConfigLocations,
boolean allowBeanDefinitionOverriding)
inclusiveConfigLocations - array of file pathsexclusiveConfigLocations - array of file paths which are excludedallowBeanDefinitionOverriding - a boolean which defines if overriding of bean definitions is
allowed
protected void checkConfigLocations(String configLocation)
configLocation - The config locationprotected List<String> getResolvedFileNames(String[] unresolvedFileNames)
unresolvedFileNames - Are the names of unresolved file names.
protected String[] resolveAttribute(String path)
path - a path of an xml file, either absolute, relative or Ant-style
public boolean isReverseConfigLocationResourceArray()
public void setReverseConfigLocationResourceArray(boolean reverseConfigLocationResourceArray)
false.
reverseConfigLocationResourceArray - Is the reverseConfigLocationResourceArray to set.public void invokeBeanFactoryPostProcessorsStrictlyOrdered(ConfigurableListableBeanFactory beanFactory)
PriorityOrdered,
then the Ordered and as last the unordered bean factory post
processors.
beanFactory - Is the factory to create the bean factory post processors.
protected void invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory beanFactory,
List<OrderedBeanNameHolder> postProcessorHolders)
beanFactory - Is the factory where to create the
BeanFactoryPostProcessorspostProcessorHolders - Are the holders of the factory post processor bean names.
protected OrderedBeanNameHolder getOrderedBeanNameHolder(ConfigurableListableBeanFactory beanFactory,
String orderedBeanName)
throws NoSuchBeanDefinitionException
beanFactory - Is the factory where the bean is configured.orderedBeanName - Is the name of the ordered bean.
NoSuchBeanDefinitionException - If the given bean name does not exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||