|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.guice.bean.reflect.BundleClassSpace
public final class BundleClassSpace
ClassSpace backed by a strongly-referenced Bundle.
| Constructor Summary | |
|---|---|
BundleClassSpace(org.osgi.framework.Bundle bundle)
|
|
| Method Summary | |
|---|---|
DeferredClass<?> |
deferLoadClass(String name)
Defers loading of the named class from the surrounding class space. |
boolean |
equals(Object rhs)
|
Enumeration<URL> |
findEntries(String path,
String glob,
boolean recurse)
Queries local class space content for entries matching the given pattern. |
URL |
getResource(String name)
Queries the surrounding class space for the resource with the given name. |
Enumeration<URL> |
getResources(String name)
Queries the surrounding class space for all resources with the given name. |
int |
hashCode()
|
Class<?> |
loadClass(String name)
Loads the named class from the surrounding class space. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BundleClassSpace(org.osgi.framework.Bundle bundle)
| Method Detail |
|---|
public Class<?> loadClass(String name)
ClassSpace
loadClass in interface ClassSpacename - The class name
ClassLoader.loadClass(String)public DeferredClass<?> deferLoadClass(String name)
ClassSpace
deferLoadClass in interface ClassSpacename - The class name
ClassLoader.loadClass(String)public URL getResource(String name)
ClassSpace
getResource in interface ClassSpacename - The resource name
null if it wasn't foundClassLoader.getResource(String)public Enumeration<URL> getResources(String name)
ClassSpace
getResources in interface ClassSpacename - The resource name
ClassLoader.getResources(String)
public Enumeration<URL> findEntries(String path,
String glob,
boolean recurse)
ClassSpace
findEntries in interface ClassSpacepath - The initial search directory; for example "META-INF"glob - The filename glob pattern; for example "*.xml"recurse - If true recurse into sub-directories; otherwise only search initial directory
Bundle.findEntries(String, String, boolean)public int hashCode()
hashCode in class Objectpublic boolean equals(Object rhs)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||