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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
void
service
(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getSource
- Specified by:
getSource
in interfaceSourceFactory
- Throws:
IOException
MalformedURLException
-
release
- Specified by:
release
in interfaceSourceFactory
-