Package org.ametys.runtime.plugin
Class PluginSourceFactory
- java.lang.Object
 - 
- org.apache.avalon.framework.logger.AbstractLogEnabled
 - 
- org.ametys.runtime.plugin.PluginSourceFactory
 
 
 
- 
- All Implemented Interfaces:
 Component,LogEnabled,Serviceable,SourceFactory
public class PluginSourceFactory extends AbstractLogEnabled implements SourceFactory, Serviceable
SourceFactory handling resources URIs for plugins. Plugin resources can be found of File System, in a JAR, ... 
- 
- 
Field Summary
Fields Modifier and Type Field Description private static Pattern__SOURCE_PATTERNprivate SourceResolver_resolver- 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PluginSourceFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
- 
__SOURCE_PATTERN
private static final Pattern __SOURCE_PATTERN
 
- 
_resolver
private SourceResolver _resolver
 
 - 
 
- 
Constructor Detail
- 
PluginSourceFactory
public PluginSourceFactory()
 
 - 
 
- 
Method Detail
- 
getSource
public Source getSource(String location, Map parameters) throws IOException
- Specified by:
 getSourcein interfaceSourceFactory- Throws:
 IOException
 
- 
release
public void release(Source source)
- Specified by:
 releasein interfaceSourceFactory
 
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 
 - 
 
 -