File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed
src/main/java/org/scijava/io/location Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 3333package org .scijava .io .location ;
3434
3535import java .net .URI ;
36- import java .net .URISyntaxException ;
3736import java .util .HashMap ;
3837import java .util .Map ;
3938
@@ -54,17 +53,6 @@ public class DefaultLocationService extends
5453
5554 private final Map <String , LocationResolver > resolvers = new HashMap <>();
5655
57- @ Override
58- public Class <LocationResolver > getPluginType () {
59- return LocationResolver .class ;
60- }
61-
62- @ Override
63- public Class <URI > getType () {
64- return URI .class ;
65- }
66-
67-
6856 @ Override
6957 public LocationResolver getResolver (final URI uri ) {
7058 return resolvers .computeIfAbsent (uri .getScheme (), u -> getHandler (uri ));
Original file line number Diff line number Diff line change @@ -83,4 +83,18 @@ default Location resolve(final URI uri) throws URISyntaxException {
8383 * <code>null</code> if no resolver could be found.
8484 */
8585 LocationResolver getResolver (URI uri );
86+
87+ // -- PTService methods --
88+
89+ @ Override
90+ default Class <LocationResolver > getPluginType () {
91+ return LocationResolver .class ;
92+ }
93+
94+ // -- Typed methods --
95+
96+ @ Override
97+ default Class <URI > getType () {
98+ return URI .class ;
99+ }
86100}
You can’t perform that action at this time.
0 commit comments