org.apache.aries.mocks
Class BundleMock
java.lang.Object
org.apache.aries.mocks.BundleMock
public class BundleMock
- extends Object
Constructor Summary |
BundleMock(String name,
Dictionary<?,?> bundleHeaders)
|
BundleMock(String name,
Dictionary<?,?> bundleHeaders,
boolean dummy)
|
BundleMock(String name,
Dictionary<?,?> properties,
File location)
|
BundleMock(String name,
Dictionary<?,?> bundleHeaders,
String location)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleMock
public BundleMock(String name,
Dictionary<?,?> bundleHeaders)
BundleMock
public BundleMock(String name,
Dictionary<?,?> bundleHeaders,
boolean dummy)
BundleMock
public BundleMock(String name,
Dictionary<?,?> bundleHeaders,
String location)
BundleMock
public BundleMock(String name,
Dictionary<?,?> properties,
File location)
throws Exception
- Throws:
Exception
getSymbolicName
public String getSymbolicName()
getHeaders
public Dictionary<?,?> getHeaders()
findEntries
public Enumeration<URL> findEntries(String baseDir,
String matchRule,
boolean recurse)
getResource
public URL getResource(String name)
getResources
public Enumeration<URL> getResources(String name)
loadClass
public Class<?> loadClass(String name)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getLocation
public String getLocation()
getBundleContext
public BundleContext getBundleContext()
getVersion
public Version getVersion()
getState
public int getState()
addToClassPath
public void addToClassPath(URL... urls)
addBundleToClassPath
public void addBundleToClassPath(Bundle... bundles)
getClassLoader
public ClassLoader getClassLoader()
getRegisteredServices
public ServiceReference[] getRegisteredServices()
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.