Package org.ametys.cms.source
Class ContentViewSourceFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.source.ContentViewSourceFactory
- All Implemented Interfaces:
 Component,Contextualizable,LogEnabled,Serviceable,SourceFactory
public class ContentViewSourceFactory
extends AbstractLogEnabled
implements SourceFactory, Contextualizable, Serviceable
This factory looks for files in the current skin and fallback in the current plugin dir.
 Use: content-view:[view]://path_to_file
 Will first look in the skin of the current site in the sub-directory stylesheet/{contenttype} => skins/{skin}/stylesheets/{contenttype}/path_to_file
 And if the file does not exist will search in plugin:{currentPluginName}://path_to_file
- 
Field Summary
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) voidvoidservice(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
- 
Constructor Details
- 
ContentViewSourceFactory
public ContentViewSourceFactory() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
contextualize
- Specified by:
 contextualizein interfaceContextualizable- Throws:
 ContextException
 - 
getSource
- Specified by:
 getSourcein interfaceSourceFactory- Throws:
 IOExceptionMalformedURLException
 - 
release
- Specified by:
 releasein interfaceSourceFactory
 
 -