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 aJavaClass
from the givenURI
, i.e. open a stream and use the default core import, to create aJavaClass
from it.
NOTE:ClassUriImporter
has to be resilient against errors during import, e.g.IOExceptions
orMalformedURLExceptions
. Errors while reading from the givenURI
will always result in an Optional.absent() return value, no need to catchExceptions
.
-