Package org.ametys.cms.source
Class ViewSourceFactory
- java.lang.Object
 - 
- org.apache.avalon.framework.logger.AbstractLogEnabled
 - 
- org.ametys.cms.source.ViewSourceFactory
 
 
 
- 
- All Implemented Interfaces:
 Component,Contextualizable,LogEnabled,Serviceable,SourceFactory
public class ViewSourceFactory extends AbstractLogEnabled implements SourceFactory, Serviceable, Contextualizable
This source factory defines an overridable way to retrieve resources (mainly XSL files). Use: view://path_to_file 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Context_contextThe contextprotected ViewSelector_viewSelectorThe view selector.- 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ViewSourceFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextualize(Context context)SourcegetSource(String location, Map parameters)voidrelease(Source source)voidservice(ServiceManager manager)- 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_viewSelector
protected ViewSelector _viewSelector
The view selector. 
 - 
 
- 
Constructor Detail
- 
ViewSourceFactory
public ViewSourceFactory()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 
- 
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
 contextualizein interfaceContextualizable- Throws:
 ContextException
 
- 
getSource
public Source getSource(String location, Map parameters) throws IOException, MalformedURLException
- Specified by:
 getSourcein interfaceSourceFactory- Throws:
 IOExceptionMalformedURLException
 
- 
release
public void release(Source source)
- Specified by:
 releasein interfaceSourceFactory
 
 - 
 
 -