org.nuxeo.osgi
Class BundleImpl
java.lang.Object
org.nuxeo.osgi.BundleImpl
- All Implemented Interfaces:
- org.osgi.framework.Bundle
- Direct Known Subclasses:
- RootRuntimeBundle, SystemBundle
public class BundleImpl
- extends java.lang.Object
- implements org.osgi.framework.Bundle
- Author:
- Bogdan Stefanescu
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 |
getClass, notify, notifyAll, wait, wait, wait |
BundleImpl
public BundleImpl(OSGiAdapter osgi,
BundleFile file,
java.lang.ClassLoader loader)
BundleImpl
public BundleImpl(OSGiAdapter osgi,
BundleFile file,
java.lang.ClassLoader loader,
boolean isSystemBundle)
getBundleFile
public BundleFile getBundleFile()
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
- Specified by:
getBundleContext
in interface org.osgi.framework.Bundle
start
public void start(int options)
throws org.osgi.framework.BundleException
- Specified by:
start
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
stop
public void stop(int options)
throws org.osgi.framework.BundleException
- Specified by:
stop
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface org.osgi.framework.Bundle
getResource
public java.net.URL getResource(java.lang.String name)
- Specified by:
getResource
in interface org.osgi.framework.Bundle
getResources
public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
throws java.io.IOException
- Specified by:
getResources
in interface org.osgi.framework.Bundle
- Throws:
java.io.IOException
loadClass
public java.lang.Class<?> loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
- Specified by:
loadClass
in interface org.osgi.framework.Bundle
- Throws:
java.lang.ClassNotFoundException
getEntry
public java.net.URL getEntry(java.lang.String name)
- Specified by:
getEntry
in interface org.osgi.framework.Bundle
findEntries
public java.util.Enumeration<java.net.URL> findEntries(java.lang.String path,
java.lang.String filePattern,
boolean recurse)
- Specified by:
findEntries
in interface org.osgi.framework.Bundle
getEntryPaths
public java.util.Enumeration<java.lang.String> getEntryPaths(java.lang.String path)
- Specified by:
getEntryPaths
in interface org.osgi.framework.Bundle
getBundleId
public long getBundleId()
- Specified by:
getBundleId
in interface org.osgi.framework.Bundle
getHeaders
public java.util.Dictionary<java.lang.String,java.lang.String> getHeaders()
- Specified by:
getHeaders
in interface org.osgi.framework.Bundle
getHeaders
public java.util.Dictionary<java.lang.String,java.lang.String> getHeaders(java.lang.String locale)
- Specified by:
getHeaders
in interface org.osgi.framework.Bundle
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface org.osgi.framework.Bundle
getRegisteredServices
public org.osgi.framework.ServiceReference[] getRegisteredServices()
- Specified by:
getRegisteredServices
in interface org.osgi.framework.Bundle
getServicesInUse
public org.osgi.framework.ServiceReference[] getServicesInUse()
- Specified by:
getServicesInUse
in interface org.osgi.framework.Bundle
getState
public int getState()
- Specified by:
getState
in interface org.osgi.framework.Bundle
getSymbolicName
public java.lang.String getSymbolicName()
- Specified by:
getSymbolicName
in interface org.osgi.framework.Bundle
hasPermission
public boolean hasPermission(java.lang.Object permission)
- Specified by:
hasPermission
in interface org.osgi.framework.Bundle
getActivator
public org.osgi.framework.BundleActivator getActivator()
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.ClassNotFoundException
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
start
public void start()
throws org.osgi.framework.BundleException
- Specified by:
start
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
stop
public void stop()
throws org.osgi.framework.BundleException
- Specified by:
stop
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
shutdown
public void shutdown()
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
uninstall
public void uninstall()
throws org.osgi.framework.BundleException
- Specified by:
uninstall
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
update
public void update()
throws org.osgi.framework.BundleException
- Specified by:
update
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
update
public void update(java.io.InputStream in)
throws org.osgi.framework.BundleException
- Specified by:
update
in interface org.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
getStartupTime
public double getStartupTime()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getSignerCertificates
public java.util.Map getSignerCertificates(int signersType)
getVersion
public org.osgi.framework.Version getVersion()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.