public class EntryLookupControllingMockBundle extends MockBundle
| Modifier and Type | Field and Description |
|---|---|
protected URL |
nextEntryResult |
protected Enumeration |
nextFindResult |
| Constructor and Description |
|---|
EntryLookupControllingMockBundle(Dictionary headers)
Constructs a new
EntryLookupControllingMockBundle
instance. |
| Modifier and Type | Method and Description |
|---|---|
protected Enumeration |
createEnumerationOver(String[] entries) |
Enumeration |
findEntries(String path,
String filePattern,
boolean recurse)
Delegates to the classloader.
|
org.osgi.framework.BundleContext |
getContext() |
URL |
getEntry(String name) |
URL |
getResource(String name) |
void |
setEntryReturnOnNextCallToGetEntry(URL entry) |
void |
setResultsToReturnOnNextCallToFindEntries(String[] findResult) |
getBundleContext, getBundleId, getEntryPaths, getHeaders, getHeaders, getLastModified, getLocation, getRegisteredServices, getResources, getServicesInUse, getSignerCertificates, getState, getSymbolicName, getVersion, hasPermission, loadClass, setBundleId, setClassLoader, setLocation, start, start, stop, stop, toString, uninstall, update, updateprotected Enumeration nextFindResult
protected URL nextEntryResult
public EntryLookupControllingMockBundle(Dictionary headers)
EntryLookupControllingMockBundle
instance.headers - public void setResultsToReturnOnNextCallToFindEntries(String[] findResult)
public Enumeration findEntries(String path, String filePattern, boolean recurse)
MockBundlefindEntries in interface org.osgi.framework.BundlefindEntries in class MockBundleBundle.findEntries(java.lang.String, java.lang.String, boolean)public void setEntryReturnOnNextCallToGetEntry(URL entry)
public URL getEntry(String name)
getEntry in interface org.osgi.framework.BundlegetEntry in class MockBundlepublic URL getResource(String name)
getResource in interface org.osgi.framework.BundlegetResource in class MockBundlepublic org.osgi.framework.BundleContext getContext()
getContext in class MockBundleprotected Enumeration createEnumerationOver(String[] entries)
Copyright © 2006-2013. All Rights Reserved.