public class EntryLookupControllingMockBundle extends MockBundle
| Modifier and Type | Field and Description |
|---|---|
protected java.net.URL |
nextEntryResult |
protected java.util.Enumeration |
nextFindResult |
| Constructor and Description |
|---|
EntryLookupControllingMockBundle(java.util.Dictionary headers)
Constructs a new
EntryLookupControllingMockBundle
instance. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Enumeration |
createEnumerationOver(java.lang.String[] entries) |
java.util.Enumeration |
findEntries(java.lang.String path,
java.lang.String filePattern,
boolean recurse)
Delegates to the classloader.
|
org.osgi.framework.BundleContext |
getContext() |
java.net.URL |
getEntry(java.lang.String name) |
java.net.URL |
getResource(java.lang.String name) |
void |
setEntryReturnOnNextCallToGetEntry(java.net.URL entry) |
void |
setResultsToReturnOnNextCallToFindEntries(java.lang.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 java.util.Enumeration nextFindResult
protected java.net.URL nextEntryResult
public EntryLookupControllingMockBundle(java.util.Dictionary headers)
EntryLookupControllingMockBundle
instance.headers - public void setResultsToReturnOnNextCallToFindEntries(java.lang.String[] findResult)
public java.util.Enumeration findEntries(java.lang.String path,
java.lang.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(java.net.URL entry)
public java.net.URL getEntry(java.lang.String name)
getEntry in interface org.osgi.framework.BundlegetEntry in class MockBundlepublic java.net.URL getResource(java.lang.String name)
getResource in interface org.osgi.framework.BundlegetResource in class MockBundlepublic org.osgi.framework.BundleContext getContext()
getContext in class MockBundleprotected java.util.Enumeration createEnumerationOver(java.lang.String[] entries)