org.objectweb.kilim
Class KilimConfiguration

java.lang.Object
  extended byorg.objectweb.kilim.model.services.Annotations
      extended byorg.objectweb.kilim.KilimConfiguration

public class KilimConfiguration
extends Annotations

A class where all the factories and global tables used by the Kilim environment, are created.

Author:
Horn

Field Summary
private static InstanciationStrategy instanciationStgy
           
private static ResourceLoader loader
           
private static MappingContext mappingContext
           
private static MappingStrategy mappingStgy
           
private static TemplateDescriptionParser parser
           
private static Repository repository
           
private static ExternalValueReferences xReferences
           
 
Fields inherited from class org.objectweb.kilim.model.services.Annotations
 
Constructor Summary
KilimConfiguration()
           
 
Method Summary
static ExternalValueReferences getExternalReferences()
          Returns the xReferences.
static InstanciationStrategy getInstanciationStrategy()
          Method getInstanciationStrategy.
static ResourceLoader getLoader()
          Method getLoader.
static MappingContext getMappingContext()
          Method getMappingContext.
static MappingStrategy getMappingStrategy()
          Method getMappingStrategy.
static Repository getRepository()
          Method getRepository.
static TemplateDescriptionParser getTemplateDescriptionParser()
          Method getTemplateDescriptionParser.
static void setExternalReferences(ExternalValueReferences xRefs)
          Sets the xReferences.
static void setInstanciationStrategy(InstanciationStrategy aStrategy)
          Method setInstanciationStgy.
static void setLoader(ResourceLoader aLoader)
          Method setLoader.
static void setMappingContext(MappingContext aContext)
          Method setMappingContext.
static void setMappingStrategy(MappingStrategy aStrategy)
          Method setMappingStrategy.
static void setRepository(Repository repository)
          Sets the repository.
static void setTemplateDescriptionParser(TemplateDescriptionParser aParser)
          Method setTemplateDescriptionParser.
 
Methods inherited from class org.objectweb.kilim.model.services.Annotations
addAnnotation, getAnnotation, getAnnotationNames, removeAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

private static TemplateDescriptionParser parser

repository

private static Repository repository

loader

private static ResourceLoader loader

instanciationStgy

private static InstanciationStrategy instanciationStgy

xReferences

private static ExternalValueReferences xReferences

mappingStgy

private static MappingStrategy mappingStgy

mappingContext

private static MappingContext mappingContext
Constructor Detail

KilimConfiguration

public KilimConfiguration()
Method Detail

getTemplateDescriptionParser

public static TemplateDescriptionParser getTemplateDescriptionParser()
Method getTemplateDescriptionParser. This method returns the SAX parser used to parse the templates stored in .kilim files

Returns:
TemplateDescriptionParser

setTemplateDescriptionParser

public static void setTemplateDescriptionParser(TemplateDescriptionParser aParser)
Method setTemplateDescriptionParser. This method sets the SAX parser used to parse the templates stored in .kilim files

Parameters:
aParser - :

getInstanciationStrategy

public static InstanciationStrategy getInstanciationStrategy()
Method getInstanciationStrategy. An instanciation strategy defines the instanciation managers to be used for each component of the system. This method returns the instanciation strategy.

Returns:
InstanciationStrategy

getLoader

public static ResourceLoader getLoader()
Method getLoader. This method returns the resource loader used to get the .kilim files.

Returns:
ResourceLoader

getMappingStrategy

public static MappingStrategy getMappingStrategy()
Method getMappingStrategy. A mapping strategy defines the mappers used to effectively perform the mechanism associated to each Runtime source and action. This method returns the mapping strategy.

Returns:
MappingStrategy

getMappingContext

public static MappingContext getMappingContext()
Method getMappingContext. A mapping strategy is enforced through mappers that take a global and shared context as a parameter. This method returns the mapping context.

Returns:
MappingContext

getRepository

public static Repository getRepository()
Method getRepository. The parsers are seen in Kilim as specific implementation of a generic Repository interface (@see org.objectweb.kilim.repository.Repository). This method returns the repository.

Returns:
Repository

setInstanciationStrategy

public static void setInstanciationStrategy(InstanciationStrategy aStrategy)
Method setInstanciationStgy. This method sets the instanciation strategy (@see org.objectweb.kilim.model.instanciation.InstanciationStrategy)

Parameters:
aStrategy - : the strategy to be set.

setLoader

public static void setLoader(ResourceLoader aLoader)
Method setLoader. This method sets the resource loader used to get the .kilim files.

Parameters:
aLoader - : the loader.

setMappingStrategy

public static void setMappingStrategy(MappingStrategy aStrategy)
Method setMappingStrategy.

Parameters:
aStrategy - : the strategy.

setMappingContext

public static void setMappingContext(MappingContext aContext)
Method setMappingContext.

Parameters:
aContext - : the mapping context.

setRepository

public static void setRepository(Repository repository)
Sets the repository.

Parameters:
repository - The repository

getExternalReferences

public static ExternalValueReferences getExternalReferences()
Returns the xReferences.

Returns:
ExternalValueReferences

setExternalReferences

public static void setExternalReferences(ExternalValueReferences xRefs)
Sets the xReferences.

Parameters:
xRefs - The xReferences to set