org.apache.sling.commons.testing.osgi
Class MockBundle
java.lang.Object
   org.apache.sling.commons.testing.osgi.MockBundle
org.apache.sling.commons.testing.osgi.MockBundle
- All Implemented Interfaces: 
- org.osgi.framework.Bundle
- public class MockBundle 
- extends java.lang.Object- implements org.osgi.framework.Bundle
 
| Fields inherited from interface org.osgi.framework.Bundle | 
| ACTIVE, INSTALLED, RESOLVED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MockBundle
public MockBundle(long bundleId)
getBundleId
public long getBundleId()
- 
- Specified by:
- getBundleIdin interface- org.osgi.framework.Bundle
 
- 
 
findEntries
public java.util.Enumeration<?> findEntries(java.lang.String path,
                                            java.lang.String filePattern,
                                            boolean recurse)
- 
- Specified by:
- findEntriesin interface- org.osgi.framework.Bundle
 
- 
 
getEntry
public java.net.URL getEntry(java.lang.String name)
- 
- Specified by:
- getEntryin interface- org.osgi.framework.Bundle
 
- 
 
getEntryPaths
public java.util.Enumeration<?> getEntryPaths(java.lang.String path)
- 
- Specified by:
- getEntryPathsin interface- org.osgi.framework.Bundle
 
- 
 
getHeaders
public java.util.Dictionary<?,?> getHeaders()
- 
- Specified by:
- getHeadersin interface- org.osgi.framework.Bundle
 
- 
 
getHeaders
public java.util.Dictionary<?,?> getHeaders(java.lang.String locale)
- 
- Specified by:
- getHeadersin interface- org.osgi.framework.Bundle
 
- 
 
getLastModified
public long getLastModified()
- 
- Specified by:
- getLastModifiedin interface- org.osgi.framework.Bundle
 
- 
 
getLocation
public java.lang.String getLocation()
- 
- Specified by:
- getLocationin interface- org.osgi.framework.Bundle
 
- 
 
getRegisteredServices
public org.osgi.framework.ServiceReference[] getRegisteredServices()
- 
- Specified by:
- getRegisteredServicesin interface- org.osgi.framework.Bundle
 
- 
 
getResource
public java.net.URL getResource(java.lang.String name)
- 
- Specified by:
- getResourcein interface- org.osgi.framework.Bundle
 
- 
 
getResources
public java.util.Enumeration<?> getResources(java.lang.String name)
- 
- Specified by:
- getResourcesin interface- org.osgi.framework.Bundle
 
- 
 
getServicesInUse
public org.osgi.framework.ServiceReference[] getServicesInUse()
- 
- Specified by:
- getServicesInUsein interface- org.osgi.framework.Bundle
 
- 
 
getState
public int getState()
- 
- Specified by:
- getStatein interface- org.osgi.framework.Bundle
 
- 
 
getSymbolicName
public java.lang.String getSymbolicName()
- 
- Specified by:
- getSymbolicNamein interface- org.osgi.framework.Bundle
 
- 
 
hasPermission
public boolean hasPermission(java.lang.Object permission)
- 
- Specified by:
- hasPermissionin interface- org.osgi.framework.Bundle
 
- 
 
loadClass
public java.lang.Class<?> loadClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
- 
- Specified by:
- loadClassin interface- org.osgi.framework.Bundle
 
- 
- Throws:
- java.lang.ClassNotFoundException
 
start
public void start()
- 
- Specified by:
- startin interface- org.osgi.framework.Bundle
 
- 
 
stop
public void stop()
- 
- Specified by:
- stopin interface- org.osgi.framework.Bundle
 
- 
 
uninstall
public void uninstall()
- 
- Specified by:
- uninstallin interface- org.osgi.framework.Bundle
 
- 
 
update
public void update()
- 
- Specified by:
- updatein interface- org.osgi.framework.Bundle
 
- 
 
update
public void update(java.io.InputStream in)
- 
- Specified by:
- updatein interface- org.osgi.framework.Bundle
 
- 
 
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
- 
- Specified by:
- getBundleContextin interface- org.osgi.framework.Bundle
 
- 
 
start
public void start(int options)
           throws org.osgi.framework.BundleException
- 
- Specified by:
- startin interface- org.osgi.framework.Bundle
 
- 
- Throws:
- org.osgi.framework.BundleException
 
stop
public void stop(int options)
          throws org.osgi.framework.BundleException
- 
- Specified by:
- stopin interface- org.osgi.framework.Bundle
 
- 
- Throws:
- org.osgi.framework.BundleException
 
Copyright © 2007-2009. All Rights Reserved.