Package org.ametys.core.source
Class ViewSourceFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.core.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
FieldsModifier and TypeFieldDescriptionprotected ContextThe contextprotected ViewSelectorThe view selector.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
-
Field Details
-
_viewSelector
The view selector. -
_context
The context
-
-
Constructor Details
-
ViewSourceFactory
public ViewSourceFactory()
-
-
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
-