Package org.eclipse.osgi.launch
Class Equinox
- java.lang.Object
-
- org.eclipse.osgi.launch.Equinox
-
-
Field Summary
-
Fields 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
Constructors Constructor Description Equinox(java.util.Map<java.lang.String,?> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A> Aadapt(java.lang.Class<A> type)intcompareTo(Bundle o)java.util.Enumeration<java.net.URL>findEntries(java.lang.String path, java.lang.String filePattern, boolean recurse)BundleContextgetBundleContext()longgetBundleId()java.io.FilegetDataFile(java.lang.String filename)java.net.URLgetEntry(java.lang.String path)java.util.Enumeration<java.lang.String>getEntryPaths(java.lang.String path)java.util.Dictionary<java.lang.String,java.lang.String>getHeaders()java.util.Dictionary<java.lang.String,java.lang.String>getHeaders(java.lang.String locale)longgetLastModified()java.lang.StringgetLocation()ServiceReference<?>[]getRegisteredServices()java.net.URLgetResource(java.lang.String name)java.util.Enumeration<java.net.URL>getResources(java.lang.String name)ServiceReference<?>[]getServicesInUse()java.util.Map<java.security.cert.X509Certificate,java.util.List<java.security.cert.X509Certificate>>getSignerCertificates(int signersType)intgetState()java.lang.StringgetSymbolicName()VersiongetVersion()booleanhasPermission(java.lang.Object permission)voidinit()voidinit(FrameworkListener... listeners)java.lang.Class<?>loadClass(java.lang.String name)voidstart()voidstart(int options)voidstop()voidstop(int options)voiduninstall()voidupdate()voidupdate(java.io.InputStream input)FrameworkEventwaitForStop(long timeout)
-
-
-
Method Detail
-
getHeaders
public java.util.Dictionary<java.lang.String,java.lang.String> getHeaders()
- Specified by:
getHeadersin interfaceBundle
-
getRegisteredServices
public ServiceReference<?>[] getRegisteredServices()
- Specified by:
getRegisteredServicesin interfaceBundle
-
getServicesInUse
public ServiceReference<?>[] getServicesInUse()
- Specified by:
getServicesInUsein interfaceBundle
-
hasPermission
public boolean hasPermission(java.lang.Object permission)
- Specified by:
hasPermissionin interfaceBundle
-
getResource
public java.net.URL getResource(java.lang.String name)
- Specified by:
getResourcein interfaceBundle
-
getHeaders
public java.util.Dictionary<java.lang.String,java.lang.String> getHeaders(java.lang.String locale)
- Specified by:
getHeadersin interfaceBundle
-
loadClass
public java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
-
getResources
public java.util.Enumeration<java.net.URL> getResources(java.lang.String name) throws java.io.IOException- Specified by:
getResourcesin interfaceBundle- Throws:
java.io.IOException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceBundle- Specified by:
getLastModifiedin interfaceFramework
-
getBundleContext
public BundleContext getBundleContext()
- Specified by:
getBundleContextin interfaceBundle
-
getSignerCertificates
public java.util.Map<java.security.cert.X509Certificate,java.util.List<java.security.cert.X509Certificate>> getSignerCertificates(int signersType)
- Specified by:
getSignerCertificatesin interfaceBundle
-
getVersion
public Version getVersion()
- Specified by:
getVersionin interfaceBundle
-
getDataFile
public java.io.File getDataFile(java.lang.String filename)
- Specified by:
getDataFilein interfaceBundle
-
compareTo
public int compareTo(Bundle o)
- Specified by:
compareToin interfacejava.lang.Comparable<Bundle>
-
start
public void start(int options) throws BundleException- Specified by:
startin interfaceBundle- Specified by:
startin interfaceFramework- Throws:
BundleException
-
start
public void start() throws BundleException- Specified by:
startin interfaceBundle- Specified by:
startin interfaceFramework- Throws:
BundleException
-
stop
public void stop(int options) throws BundleException- Specified by:
stopin interfaceBundle- Specified by:
stopin interfaceFramework- Throws:
BundleException
-
stop
public void stop() throws BundleException- Specified by:
stopin interfaceBundle- Specified by:
stopin interfaceFramework- Throws:
BundleException
-
update
public void update(java.io.InputStream input) throws BundleException- Specified by:
updatein interfaceBundle- Specified by:
updatein interfaceFramework- Throws:
BundleException
-
update
public void update() throws BundleException- Specified by:
updatein interfaceBundle- Specified by:
updatein interfaceFramework- Throws:
BundleException
-
uninstall
public void uninstall() throws BundleException- Specified by:
uninstallin interfaceBundle- Specified by:
uninstallin interfaceFramework- Throws:
BundleException
-
getBundleId
public long getBundleId()
- Specified by:
getBundleIdin interfaceBundle- Specified by:
getBundleIdin interfaceFramework
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocationin interfaceBundle- Specified by:
getLocationin interfaceFramework
-
getSymbolicName
public java.lang.String getSymbolicName()
- Specified by:
getSymbolicNamein interfaceBundle- Specified by:
getSymbolicNamein interfaceFramework
-
getEntryPaths
public java.util.Enumeration<java.lang.String> getEntryPaths(java.lang.String path)
- Specified by:
getEntryPathsin interfaceBundle- Specified by:
getEntryPathsin interfaceFramework
-
getEntry
public java.net.URL getEntry(java.lang.String path)
-
findEntries
public java.util.Enumeration<java.net.URL> findEntries(java.lang.String path, java.lang.String filePattern, boolean recurse)- Specified by:
findEntriesin interfaceBundle- Specified by:
findEntriesin interfaceFramework
-
adapt
public <A> A adapt(java.lang.Class<A> type)
-
init
public void init() throws BundleException- Specified by:
initin interfaceFramework- Throws:
BundleException
-
init
public void init(FrameworkListener... listeners) throws BundleException
- Specified by:
initin interfaceFramework- Throws:
BundleException- Since:
- 3.10
-
waitForStop
public FrameworkEvent waitForStop(long timeout) throws java.lang.InterruptedException
- Specified by:
waitForStopin interfaceFramework- Throws:
java.lang.InterruptedException
-
-