public class SkinSourceFactory extends FileSourceFactory implements Contextualizable, LogEnabled, Serviceable
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
__SOURCE_PATTERN
The regexp for a protocol
|
protected Context |
_cocoonContext
Cocoon context
|
protected Context |
_context
Avalon context
|
protected Logger |
_logger
Logger
|
private ServiceManager |
_manager |
protected SiteManager |
_siteManager
The site manager
|
protected SkinsManager |
_skinsManager
The skins manager
|
ROLE
Constructor and Description |
---|
SkinSourceFactory() |
Modifier and Type | Method and Description |
---|---|
String |
absolutize(String baseURI,
String location) |
void |
contextualize(Context context) |
void |
enableLogging(Logger logger) |
protected Skin |
getSkin(String name,
String defaultValue)
Return the current skin
|
Source |
getSource(String location,
Map parameters) |
protected void |
initializeComponents()
Lookup
SiteManager and SkinsManager for lazy initialization. |
void |
service(ServiceManager manager) |
release
protected static final Pattern __SOURCE_PATTERN
protected SkinsManager _skinsManager
protected SiteManager _siteManager
protected Context _cocoonContext
private ServiceManager _manager
public SkinSourceFactory()
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
protected void initializeComponents()
SiteManager
and SkinsManager
for lazy initialization.protected Skin getSkin(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 skin do not existpublic Source getSource(String location, Map parameters) throws IOException
getSource
in interface SourceFactory
getSource
in class FileSourceFactory
IOException
public String absolutize(String baseURI, String location)
absolutize
in interface URIAbsolutizer
absolutize
in class FileSourceFactory
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException