|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.loader.MetaInfScanner
public class MetaInfScanner
This class will track all META-INF/ resources (except MANIFEST) so that we can get URL for META-INF/services/* key for example.
| Constructor Summary | |
|---|---|
MetaInfScanner(org.osgi.framework.BundleContext bundleContext)
Default constructor for the given bundle context. |
|
| Method Summary | |
|---|---|
URL |
getResource(String name)
Gets an URL for a given resource name. |
InputStream |
getResourceAsStream(String name)
Gets inputstream for the given name. |
Enumeration<URL> |
getResources(String name)
Gets list of URL for the given resource name. |
void |
start()
Register the service when we start. |
void |
stop()
Stop the locator and stop tracking entries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaInfScanner(org.osgi.framework.BundleContext bundleContext)
bundleContext - the bundle context| Method Detail |
|---|
public void start()
public void stop()
public URL getResource(String name)
getResource in interface IMetaInfLocatorname - the name to search
public InputStream getResourceAsStream(String name)
getResourceAsStream in interface IMetaInfLocatorname - the name to search
public Enumeration<URL> getResources(String name)
throws IOException
getResources in interface IMetaInfLocatorname - the name to search
IOException - if there is an error while searching entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||