Package org.nuxeo.osgi
Class BundleImpl
java.lang.Object
org.nuxeo.osgi.BundleImpl
- All Implemented Interfaces:
Comparable<org.osgi.framework.Bundle>,org.osgi.framework.Bundle
- Direct Known Subclasses:
RootRuntimeBundle,SystemBundle
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleActivatorprotected booleanprotected final org.osgi.framework.BundleContextprotected final BundleFileprotected final Dictionary<String, String> protected final longprotected longprotected final ClassLoaderprotected final Stringprotected final OSGiAdapterprotected doubleprotected intprotected final StringFields inherited from interface org.osgi.framework.Bundle
ACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED -
Constructor Summary
ConstructorsConstructorDescriptionBundleImpl(OSGiAdapter osgi, BundleFile file, ClassLoader loader) BundleImpl(OSGiAdapter osgi, BundleFile file, ClassLoader loader, boolean isSystemBundle) -
Method Summary
Modifier and TypeMethodDescription<A> AintcompareTo(org.osgi.framework.Bundle o) protected final org.osgi.framework.BundleContextbooleanfindEntries(String path, String filePattern, boolean recurse) org.osgi.framework.BundleActivatorprotected Stringorg.osgi.framework.BundleContextlonggetDataFile(String filename) getEntryPaths(String path) getHeaders(String locale) longstatic org.osgi.service.packageadmin.PackageAdminorg.osgi.framework.ServiceReference[]getResource(String name) getResources(String name) org.osgi.framework.ServiceReference[]getSignerCertificates(int signersType) doubleintgetState()org.osgi.framework.VersioninthashCode()booleanhasPermission(Object permission) Class<?> voidshutdown()voidstart()voidstart(int options) voidstop()voidstop(int options) toString()voidvoidupdate()voidupdate(InputStream in)
-
Field Details
-
id
protected final long id -
symbolicName
-
headers
-
context
protected final org.osgi.framework.BundleContext context -
osgi
-
file
-
location
-
loader
-
state
protected int state -
lastModified
protected long lastModified -
activator
protected org.osgi.framework.BundleActivator activator -
startupTime
protected double startupTime -
allowHostOverride
protected boolean allowHostOverride
-
-
Constructor Details
-
BundleImpl
public BundleImpl(OSGiAdapter osgi, BundleFile file, ClassLoader loader) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-
BundleImpl
public BundleImpl(OSGiAdapter osgi, BundleFile file, ClassLoader loader, boolean isSystemBundle) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-
-
Method Details
-
getBundleFile
-
createContext
protected final org.osgi.framework.BundleContext createContext() -
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()- Specified by:
getBundleContextin interfaceorg.osgi.framework.Bundle
-
start
public void start(int options) throws org.osgi.framework.BundleException - Specified by:
startin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
stop
public void stop(int options) throws org.osgi.framework.BundleException - Specified by:
stopin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
getLocation
- Specified by:
getLocationin interfaceorg.osgi.framework.Bundle
-
getResource
- Specified by:
getResourcein interfaceorg.osgi.framework.Bundle
-
getResources
- Specified by:
getResourcesin interfaceorg.osgi.framework.Bundle- Throws:
IOException
-
loadClass
- Specified by:
loadClassin interfaceorg.osgi.framework.Bundle- Throws:
ClassNotFoundException
-
getEntry
- Specified by:
getEntryin interfaceorg.osgi.framework.Bundle
-
getPackageAdmin
public static org.osgi.service.packageadmin.PackageAdmin getPackageAdmin() -
findEntries
- Specified by:
findEntriesin interfaceorg.osgi.framework.Bundle
-
getEntryPaths
- Specified by:
getEntryPathsin interfaceorg.osgi.framework.Bundle
-
getBundleId
public long getBundleId()- Specified by:
getBundleIdin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceorg.osgi.framework.Bundle
-
getRegisteredServices
public org.osgi.framework.ServiceReference[] getRegisteredServices()- Specified by:
getRegisteredServicesin interfaceorg.osgi.framework.Bundle
-
getServicesInUse
public org.osgi.framework.ServiceReference[] getServicesInUse()- Specified by:
getServicesInUsein interfaceorg.osgi.framework.Bundle
-
getState
public int getState()- Specified by:
getStatein interfaceorg.osgi.framework.Bundle
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceorg.osgi.framework.Bundle
-
hasPermission
- Specified by:
hasPermissionin interfaceorg.osgi.framework.Bundle
-
getActivatorClassName
-
getActivator
public org.osgi.framework.BundleActivator getActivator() throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
start
public void start() throws org.osgi.framework.BundleException- Specified by:
startin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
stop
public void stop() throws org.osgi.framework.BundleException- Specified by:
stopin interfaceorg.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:
uninstallin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
update
public void update() throws org.osgi.framework.BundleException- Specified by:
updatein interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
update
- Specified by:
updatein interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
getStartupTime
public double getStartupTime() -
hashCode
public int hashCode() -
equals
-
toString
-
getSignerCertificates
- Specified by:
getSignerCertificatesin interfaceorg.osgi.framework.Bundle
-
getVersion
public org.osgi.framework.Version getVersion()- Specified by:
getVersionin interfaceorg.osgi.framework.Bundle
-
adapt
- Specified by:
adaptin interfaceorg.osgi.framework.Bundle
-
getDataFile
- Specified by:
getDataFilein interfaceorg.osgi.framework.Bundle
-
compareTo
public int compareTo(org.osgi.framework.Bundle o) - Specified by:
compareToin interfaceComparable<org.osgi.framework.Bundle>
-