org.glassfish.hk2.osgiresourcelocator
Class ResourceFinder

java.lang.Object
  extended by org.glassfish.hk2.osgiresourcelocator.ResourceFinder
Direct Known Subclasses:
ResourceFinderImpl

public abstract class ResourceFinder
extends Object

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:
Sanjeeb.Sahoo@Sun.COM

Constructor Summary
ResourceFinder()
           
 
Method Summary
static List<URL> findEntries(String path)
           
static URL findEntry(String path)
           
static void initialize(ResourceFinder singleton)
           
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFinder

public ResourceFinder()
Method Detail

initialize

public static void initialize(ResourceFinder singleton)

reset

public static void reset()

findEntry

public static URL findEntry(String path)

findEntries

public static List<URL> findEntries(String path)


Copyright © 2013 GlassFish Community. All Rights Reserved.