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 java.lang.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 java.util.List<java.net.URL> findEntries(java.lang.String path)
           
static java.net.URL findEntry(java.lang.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 java.net.URL findEntry(java.lang.String path)

findEntries

public static java.util.List<java.net.URL> findEntries(java.lang.String path)


Copyright © 2010 GlassFish Community. All Rights Reserved.