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, update
protected 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)
MockBundle
findEntries
in interface org.osgi.framework.Bundle
findEntries
in class MockBundle
Bundle.findEntries(java.lang.String, java.lang.String, boolean)
public void setEntryReturnOnNextCallToGetEntry(URL entry)
public URL getEntry(String name)
getEntry
in interface org.osgi.framework.Bundle
getEntry
in class MockBundle
public URL getResource(String name)
getResource
in interface org.osgi.framework.Bundle
getResource
in class MockBundle
public org.osgi.framework.BundleContext getContext()
getContext
in class MockBundle
protected Enumeration createEnumerationOver(String[] entries)
Copyright © 2006–2018. All rights reserved.