org.objectweb.kilim.repository
Class ResourceRepository1
java.lang.Object
org.objectweb.kilim.repository.ResourceRepository
org.objectweb.kilim.repository.ResourceRepository1
- All Implemented Interfaces:
- Repository
- public class ResourceRepository1
- extends ResourceRepository
Implementation of Repository using a ResourceLoader and a kilim xml format Parser.
Repository
- Author:
- dutoo, horn
Constructor Summary |
ResourceRepository1()
Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader. |
ResourceRepository1(TemplateDescriptionParser aParser)
Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceRepository1
public ResourceRepository1()
- Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader.
ResourceRepository1
public ResourceRepository1(TemplateDescriptionParser aParser)
- Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader.
- Parameters:
aParser
- the kilim xml format parser to be used
getSingleDescription
protected TemplateDescription getSingleDescription(java.lang.String resourceName,
ResourceMapping parsingResult)
throws ResourceNotFoundException
- Method getSingleDescription. This method parses a single ".kilim" file. It updates the ResourceMapping object
received as a parameter by adding new unknown templates, new "super" references, etc ...
- Overrides:
getSingleDescription
in class ResourceRepository
- Parameters:
resourceName
- : the name of the template to be parsedparsingResult
- : the ResourceMapping object used to store the parsing results to be used during next iterations.
- Returns:
- TemplateDescription : the internal representation of the template described in the resource.
- Throws:
ResourceNotFoundException
setValue
private static void setValue(Property property,
java.lang.String value)
error
private static void error(Property property,
java.lang.String value,
java.lang.Exception exc)