public class TemplateSourceFactory extends SkinSourceFactory
SkinSourceFactory__SOURCE_PATTERN, _cocoonContext, _context, _logger, _siteManager, _skinsManagerROLE| 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, servicereleasepublic TemplateSourceFactory()
public Source getSource(String location, Map parameters) throws IOException, SourceNotFoundException
getSource in interface SourceFactorygetSource in class SkinSourceFactoryIOExceptionSourceNotFoundExceptionprotected 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