The URIs for a package name are obtained, by default, by invoking {@link ClassLoader#getResources(java.lang.String) } with the parameter thatis the package name with "." replaced by "/". The obtaining of the resources with a given name may be overridden by registering an implementation of {@link ResourcesProvider} using the method{@link #setResourcesProvider(com.sun.jersey.core.spi.scanning.PackageNamesScanner.ResourcesProvider) }.
Each URI is then scanned using a registered {@link UriSchemeScanner} thatsupports the URI scheme.
The following are registered by default. The {@link FileSchemeScanner} for "file" URI schemes.The {@link JarZipSchemeScanner} for "jar" or "zip" URI schemes to jarresources. The {@link VfsSchemeScanner} for the JBoss-based "vfsfile" and "vfszip"URI schemes.
Further schemes may be registered by registering an implementation of {@link UriSchemeScanner} in the META-INF/services file whose name is thethe fully qualified class name of {@link UriSchemeScanner}.
If a URI scheme is not supported a {@link ScannerException} will be thrownand package scanning deployment will fail. @author Paul.Sandoz@Sun.Com @author Jakub.Podlesak@Sun.Com
|
|
|
|
|
|
|
|
|
|