public class SkinsManager extends AbstractLogEnabled implements ThreadSafe, Serviceable, Component, Contextualizable
| Modifier and Type | Field and Description | 
|---|---|
protected Context | 
_cocoonContext
Cocoon context 
 | 
protected Context | 
_context
Avalon context 
 | 
protected ServiceManager | 
_manager
The avalon service manager 
 | 
protected SiteManager | 
_siteManager
The site manager 
 | 
protected Map<String,Skin> | 
_skins
The set of templates classified by skins 
 | 
protected SourceResolver | 
_sourceResolver
The excalibur source resolver 
 | 
static String | 
ROLE
The avalon role name 
 | 
| Constructor and Description | 
|---|
SkinsManager()  | 
| Modifier and Type | Method and Description | 
|---|---|
private String | 
_getSkinLocation(String id)
Get the skin location 
 | 
private boolean | 
_skinExists(File skinsDir)  | 
void | 
contextualize(Context context)  | 
Skin | 
getSkin(String id)
Get a skin 
 | 
String | 
getSkinNameFromRequest(Request request)
Get the skin name from request or  
null if not found | 
Set<String> | 
getSkins()
Get the list of existing skins 
 | 
String | 
getSkinsLocation()
Get the skins location 
 | 
void | 
service(ServiceManager manager)  | 
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected ServiceManager _manager
protected SourceResolver _sourceResolver
protected Context _cocoonContext
protected SiteManager _siteManager
public SkinsManager()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic Set<String> getSkins()
public Skin getSkin(String id)
id - The id of the skinpublic String getSkinsLocation()
public String getSkinNameFromRequest(Request request)
null if not foundrequest - The requestnullprivate String _getSkinLocation(String id)
id - The id of the skinprivate boolean _skinExists(File skinsDir)