public interface LocationService extends HandlerService<URI,LocationResolver>, SciJavaService
LocationResolver
plugins for translation.Modifier and Type | Method and Description |
---|---|
default Class<LocationResolver> |
getPluginType()
Gets the type of plugins managed by this service.
|
LocationResolver |
getResolver(URI uri)
Returns a
LocationResolver capable of resolving URL like the one
provided to this method. |
default Class<URI> |
getType()
Gets the type associated with the object.
|
default Location |
resolve(String uri)
|
default Location |
resolve(URI uri)
Resolves the given
URI to a location. |
getHandler, getInstances, supports
create, filterInstances, getInstance, initialize, objectService
find
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
default Location resolve(String uri) throws URISyntaxException
uri
- the uri to resolveLocation
URISyntaxException
- if the URI is malformeddefault Location resolve(URI uri) throws URISyntaxException
URI
to a location.uri
- the uri to resolveLocation
or null
if no resolver
could be found.URISyntaxException
- if the URI is malformedLocationResolver getResolver(URI uri)
LocationResolver
capable of resolving URL like the one
provided to this method. Allows faster repeated resolving of similar URIs
without going through this service.uri
- the uriLocationResolver
for this uri type, or
null
if no resolver could be found.default Class<LocationResolver> getPluginType()
PTService
getPluginType
in interface PTService<LocationResolver>
Copyright © 2009–2018 SciJava. All rights reserved.