public class TemplateSourceFactory extends SkinSourceFactory
SkinSourceFactory
__SOURCE_PATTERN, _cocoonContext, _context, _logger, _siteManager, _skinsManager
ROLE
Constructor and Description |
---|
TemplateSourceFactory() |
Modifier and Type | Method and Description |
---|---|
Source |
getSource(String location,
Map parameters) |
protected SkinTemplate |
getTemplate(String name,
String defaultValue)
Return the current template
|
absolutize, contextualize, enableLogging, getSkin, initializeComponents, service
release
public TemplateSourceFactory()
public Source getSource(String location, Map parameters) throws IOException, SourceNotFoundException
getSource
in interface SourceFactory
getSource
in class SkinSourceFactory
IOException
SourceNotFoundException
protected SkinTemplate getTemplate(String name, String defaultValue) throws SourceNotFoundException
name
- the skin name. Can be null or emptydefaultValue
- switch to this value if skin cannot be determined, or if the determined skin does not exist. Can be nullSourceNotFoundException
- If the template cannot be determiner or the template do not exist