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
Modifier and TypeFieldDescriptionprotected Context
The contextprotected ViewSelector
The view selector.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
-
Field Details
-
_viewSelector
The view selector. -
_context
The context
-
-
Constructor Details
-
ViewSourceFactory
public ViewSourceFactory()
-
-
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
-