public class ProxySourceFactory extends AbstractLogEnabled implements SourceFactory, ThreadSafe, Serviceable, Configurable
<match>kernel://(.*)</match>
<protocols>
<protocol>resource://org/ametys/runtime/kernel/{1}</protocol>
<protocol>context://kernel/{1}</protocol>
</protocols>
Modifier and Type | Field and Description |
---|---|
private ServiceManager |
_manager |
protected Pattern |
_matcher
URI matcher
|
protected List<String> |
_protocols
Proxied sources
|
private SourceResolver |
_sourceResolver |
ROLE
Constructor and Description |
---|
ProxySourceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
Source |
getSource(String location,
Map parameters) |
void |
release(Source source) |
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected List<String> _protocols
private SourceResolver _sourceResolver
private ServiceManager _manager
public ProxySourceFactory()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Source getSource(String location, Map parameters) throws IOException, MalformedURLException
getSource
in interface SourceFactory
IOException
MalformedURLException
public void release(Source source)
release
in interface SourceFactory