public class BundleImpl extends Object implements org.osgi.framework.Bundle
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BundleImpl.CompoundEnumerationBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleActivator |
activator |
protected boolean |
allowHostOverride |
protected org.osgi.framework.BundleContext |
context |
protected BundleFile |
file |
protected Dictionary<String,String> |
headers |
protected long |
id |
protected long |
lastModified |
protected ClassLoader |
loader |
protected OSGiAdapter |
osgi |
protected double |
startupTime |
protected int |
state |
protected String |
symbolicName |
| Constructor and Description |
|---|
BundleImpl(OSGiAdapter osgi,
BundleFile file,
ClassLoader loader) |
BundleImpl(OSGiAdapter osgi,
BundleFile file,
ClassLoader loader,
boolean isSystemBundle) |
| Modifier and Type | Method and Description |
|---|---|
protected org.osgi.framework.BundleContext |
createContext() |
boolean |
equals(Object obj) |
Enumeration<URL> |
findEntries(String path,
String filePattern,
boolean recurse) |
org.osgi.framework.BundleActivator |
getActivator() |
protected String |
getActivatorClassName() |
org.osgi.framework.BundleContext |
getBundleContext() |
BundleFile |
getBundleFile() |
long |
getBundleId() |
URL |
getEntry(String name) |
Enumeration<String> |
getEntryPaths(String path) |
Dictionary<String,String> |
getHeaders() |
Dictionary<String,String> |
getHeaders(String locale) |
long |
getLastModified() |
String |
getLocation() |
static org.osgi.service.packageadmin.PackageAdmin |
getPackageAdmin() |
org.osgi.framework.ServiceReference[] |
getRegisteredServices() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
org.osgi.framework.ServiceReference[] |
getServicesInUse() |
Map |
getSignerCertificates(int signersType) |
double |
getStartupTime() |
int |
getState() |
String |
getSymbolicName() |
org.osgi.framework.Version |
getVersion() |
int |
hashCode() |
boolean |
hasPermission(Object permission) |
Class<?> |
loadClass(String name) |
void |
shutdown() |
void |
start() |
void |
start(int options) |
void |
stop() |
void |
stop(int options) |
String |
toString() |
void |
uninstall() |
void |
update() |
void |
update(InputStream in) |
protected final long id
protected final String symbolicName
protected final Dictionary<String,String> headers
protected final org.osgi.framework.BundleContext context
protected final OSGiAdapter osgi
protected final BundleFile file
protected final ClassLoader loader
protected int state
protected long lastModified
protected org.osgi.framework.BundleActivator activator
protected double startupTime
protected boolean allowHostOverride
public BundleImpl(OSGiAdapter osgi, BundleFile file, ClassLoader loader) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic BundleImpl(OSGiAdapter osgi, BundleFile file, ClassLoader loader, boolean isSystemBundle) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic BundleFile getBundleFile()
protected final org.osgi.framework.BundleContext createContext()
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface org.osgi.framework.Bundlepublic void start(int options) throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop(int options) throws org.osgi.framework.BundleException
stop in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic String getLocation()
getLocation in interface org.osgi.framework.Bundlepublic URL getResource(String name)
getResource in interface org.osgi.framework.Bundlepublic Enumeration<URL> getResources(String name) throws IOException
getResources in interface org.osgi.framework.BundleIOExceptionpublic Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in interface org.osgi.framework.BundleClassNotFoundExceptionpublic URL getEntry(String name)
getEntry in interface org.osgi.framework.Bundlepublic static org.osgi.service.packageadmin.PackageAdmin getPackageAdmin()
public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse)
findEntries in interface org.osgi.framework.Bundlepublic Enumeration<String> getEntryPaths(String path)
getEntryPaths in interface org.osgi.framework.Bundlepublic long getBundleId()
getBundleId in interface org.osgi.framework.Bundlepublic Dictionary<String,String> getHeaders()
getHeaders in interface org.osgi.framework.Bundlepublic Dictionary<String,String> getHeaders(String locale)
getHeaders in interface org.osgi.framework.Bundlepublic long getLastModified()
getLastModified in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference[] getRegisteredServices()
getRegisteredServices in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference[] getServicesInUse()
getServicesInUse in interface org.osgi.framework.Bundlepublic int getState()
getState in interface org.osgi.framework.Bundlepublic String getSymbolicName()
getSymbolicName in interface org.osgi.framework.Bundlepublic boolean hasPermission(Object permission)
hasPermission in interface org.osgi.framework.Bundleprotected String getActivatorClassName()
public org.osgi.framework.BundleActivator getActivator() throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic void start() throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop() throws org.osgi.framework.BundleException
stop in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void shutdown() throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic void uninstall() throws org.osgi.framework.BundleException
uninstall in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void update() throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void update(InputStream in) throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic double getStartupTime()
public Map getSignerCertificates(int signersType)
getSignerCertificates in interface org.osgi.framework.Bundlepublic org.osgi.framework.Version getVersion()
getVersion in interface org.osgi.framework.BundleCopyright © 2016 Nuxeo SA. All rights reserved.