Interface ClassResolver.ClassUriImporter
- Enclosing interface:
- ClassResolver
Provides a way to import a JavaClass from a given
URI.- See Also:
-
Method Summary
-
Method Details
-
tryImport
Try to import aJavaClassfrom the givenURI, i.e. open a stream and use the default core import, to create aJavaClassfrom it.
NOTE:ClassUriImporterhas to be resilient against errors during import, e.g.IOExceptionsorMalformedURLExceptions. Errors while reading from the givenURIwill always result in an Optional.absent() return value, no need to catchExceptions.
-