|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.framework.webui.spi.ResourceLoader
public final class ResourceLoader
Helper class to load resources from the bundle classpath
Constructor Summary | |
---|---|
ResourceLoader(org.osgi.framework.BundleContext context)
|
Method Summary | |
---|---|
java.net.URL |
getResource(java.lang.String name)
Get resource as URL |
java.lang.String |
getResourceAsString(java.lang.String name)
Get a text file resource as String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceLoader(org.osgi.framework.BundleContext context)
Method Detail |
---|
public java.net.URL getResource(java.lang.String name)
name
- Resource name relative to bundles classpath
public java.lang.String getResourceAsString(java.lang.String name)
name
- Resource name relative to bundles classpath
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |