Package org.scijava.io.location
Interface LocationService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HandlerService<URI,LocationResolver>,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,PTService<LocationResolver>,RichPlugin,SciJavaPlugin,SciJavaService,Service,SingletonService<LocationResolver>,Typed<URI>,TypedService<URI,LocationResolver>,Versioned
- All Known Implementing Classes:
DefaultLocationService
public interface LocationService extends HandlerService<URI,LocationResolver>, SciJavaService
A service that allows resolving of URIs to Locations, usingLocationResolverplugins for translation.- Author:
- Gabriel Einsdorf
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default Class<LocationResolver>getPluginType()Gets the type of plugins managed by this service.default LocationResolvergetResolver(URI uri)Deprecated.UseHandlerService.getHandler(DT)instead.default Class<URI>getType()Gets the type associated with the object.default Locationresolve(String uriString)default Locationresolve(URI uri)Resolves the givenURIto a location.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HandlerService
getHandler, getInstances, supports
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService, pluginService
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
registerEventHandlers
-
Methods inherited from interface org.scijava.plugin.SingletonService
create, filterInstances, getInstance, initialize, objectService
-
Methods inherited from interface org.scijava.plugin.TypedService
find
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
resolve
default Location resolve(String uriString) throws URISyntaxException
- Parameters:
uriString- the uri to resolve- Returns:
- the resolved
Location - Throws:
URISyntaxException- if the URI is malformed
-
resolve
default Location resolve(URI uri) throws URISyntaxException
Resolves the givenURIto a location. If theschemepart of the URI isnullthe path component is resolved as a local file.- Parameters:
uri- the uri to resolve- Returns:
- the resolved
Locationornullif no resolver could be found. - Throws:
URISyntaxException- if the URI is malformed
-
getResolver
@Deprecated default LocationResolver getResolver(URI uri)
Deprecated.UseHandlerService.getHandler(DT)instead.
-
getPluginType
default Class<LocationResolver> getPluginType()
Description copied from interface:PTServiceGets the type of plugins managed by this service.- Specified by:
getPluginTypein interfacePTService<LocationResolver>
-
-