Top Description Fields Constructors Methods
org.glassfish.hk2.osgiresourcelocator

public abstract Class ResourceFinder

extends Object
Class Inheritance
Known Direct Subclasses
org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl
Imports
java.net.URL, java.util.List

This class provides helper methods to look up resources that are part of OSGi bundles, but can't be exported. e.g., META-INF/mailcap file used by JavaMail. This class has been carefully coded to be loadable in non-OSGi environment. When it is used in such an environment, various getENtry methods return null.
Author
[email protected]

Field Summary

Modifier and TypeField and Description
private static ResourceFinder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static List<URL>
pack-priv abstract List<URL>
public static URL
pack-priv abstract URL
public static void
public static synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_meback to summary
private static ResourceFinder _me

Constructor Detail

ResourceFinderback to summary
public ResourceFinder()

Method Detail

findEntriesback to summary
public static List<URL> findEntries(String path)
findEntries1back to summary
pack-priv abstract List<URL> findEntries1(String path)
findEntryback to summary
public static URL findEntry(String path)
findEntry1back to summary
pack-priv abstract URL findEntry1(String path)
initializeback to summary
public static void initialize(ResourceFinder singleton)
resetback to summary
public static synchronized void reset()