ch.elca.el4j.core.context
Class ModuleApplicationContextConfiguration

java.lang.Object
  extended by ch.elca.el4j.core.context.ModuleApplicationContextConfiguration

public class ModuleApplicationContextConfiguration
extends Object

This class describes the configuration of a ModuleApplicationContext. It can be used to specify how a ModuleApplicationContext should be configured without actually creating the application context.

Author:
Alex Mathey (AMA), Martin Zeltner (MZE)
File-location:
ModuleApplicationContextConfiguration
Last check-in date:
2010-11-02 11:44:37 +0100 (Di, 02. Nov 2010) by swisswheel for revision 4204

Constructor Summary
ModuleApplicationContextConfiguration()
           
 
Method Summary
 String[] getExclusiveConfigLocations()
           
 String[] getInclusiveConfigLocations()
           
 ModuleApplicationContextCreationListener getModuleApplicationContextCreationListener()
           
 ApplicationContext getParent()
           
 boolean isAllowBeanDefinitionOverriding()
           
 boolean isMergeWithOuterResources()
           
 boolean isMostSpecificBeanDefinitionCounts()
           
 boolean isMostSpecificResourceLast()
           
 void setAllowBeanDefinitionOverriding(boolean allowBeanDefinitionOverriding)
          Indicates if bean definition overriding is enabled.
 void setExclusiveConfigLocations(String[] exclusiveConfigLocations)
          Exclusive config locations.
 void setInclusiveConfigLocations(String[] inclusiveConfigLocations)
          Inclusive config locations.
 void setMergeWithOuterResources(boolean mergeWithOuterResources)
          Indicates if unordered/unknown resources should be used.
 void setModuleApplicationContextCreationListener(ModuleApplicationContextCreationListener moduleApplicationContextCreationListener)
          Is used to hock into the creation process of the module application context.
 void setMostSpecificBeanDefinitionCounts(boolean mostSpecificBeanDefinitionCounts)
          Indicates if the most specific bean definition counts.
 void setMostSpecificResourceLast(boolean mostSpecificResourceLast)
          Indicates if the most specific resource should be the last resource in the fetched resource array.
 void setParent(ApplicationContext parent)
          The parent application context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleApplicationContextConfiguration

public ModuleApplicationContextConfiguration()
Method Detail

isAllowBeanDefinitionOverriding

public final boolean isAllowBeanDefinitionOverriding()
Returns:
Returns the allowBeanDefinitionOverriding.

setAllowBeanDefinitionOverriding

public final void setAllowBeanDefinitionOverriding(boolean allowBeanDefinitionOverriding)
Indicates if bean definition overriding is enabled. The default is set to false.

Parameters:
allowBeanDefinitionOverriding - Is the allowBeanDefinitionOverriding to set.

getExclusiveConfigLocations

public final String[] getExclusiveConfigLocations()
Returns:
Returns the exclusiveConfigLocations.

setExclusiveConfigLocations

public final void setExclusiveConfigLocations(String[] exclusiveConfigLocations)
Exclusive config locations. The default is an empty string array.

Parameters:
exclusiveConfigLocations - Is the exclusiveConfigLocations to set.

getInclusiveConfigLocations

public final String[] getInclusiveConfigLocations()
Returns:
Returns the inclusiveConfigLocations.

setInclusiveConfigLocations

public final void setInclusiveConfigLocations(String[] inclusiveConfigLocations)
Inclusive config locations. The default is an empty string array.

Parameters:
inclusiveConfigLocations - Is the inclusiveConfigLocations to set.

isMergeWithOuterResources

public final boolean isMergeWithOuterResources()
Returns:
Returns the mergeWithOuterResources.

setMergeWithOuterResources

public final void setMergeWithOuterResources(boolean mergeWithOuterResources)
Indicates if unordered/unknown resources should be used. The default is set to true.

Parameters:
mergeWithOuterResources - Is the mergeWithOuterResources to set.

isMostSpecificBeanDefinitionCounts

public final boolean isMostSpecificBeanDefinitionCounts()
Returns:
Returns the mostSpecificBeanDefinitionCounts.

setMostSpecificBeanDefinitionCounts

public final void setMostSpecificBeanDefinitionCounts(boolean mostSpecificBeanDefinitionCounts)
Indicates if the most specific bean definition counts. The default is set to true.

Parameters:
mostSpecificBeanDefinitionCounts - Is the mostSpecificBeanDefinitionCounts to set.

isMostSpecificResourceLast

public final boolean isMostSpecificResourceLast()
Returns:
Returns the mostSpecificResourceLast.

setMostSpecificResourceLast

public final void setMostSpecificResourceLast(boolean mostSpecificResourceLast)
Indicates if the most specific resource should be the last resource in the fetched resource array. If its value is set to true and only one resource is requested the least specific resource will be returned. The default is set to false.

Parameters:
mostSpecificResourceLast - Is the mostSpecificResourceLast to set.

getParent

public final ApplicationContext getParent()
Returns:
Returns the parent.

setParent

public final void setParent(ApplicationContext parent)
The parent application context. The default is set to null.

Parameters:
parent - Is the parent to set.

getModuleApplicationContextCreationListener

public ModuleApplicationContextCreationListener getModuleApplicationContextCreationListener()
Returns:
Returns the moduleApplicationContextCreationListener.

setModuleApplicationContextCreationListener

public void setModuleApplicationContextCreationListener(ModuleApplicationContextCreationListener moduleApplicationContextCreationListener)
Is used to hock into the creation process of the module application context.

Parameters:
moduleApplicationContextCreationListener - Is the moduleApplicationContextCreationListener to set.


Copyright © 2005-2011 ELCA. All Rights Reserved.