Class SlingFelix
java.lang.Object
org.apache.felix.framework.Felix
org.apache.sling.launchpad.base.impl.SlingFelix
- All Implemented Interfaces:
Comparable<org.osgi.framework.Bundle>,org.osgi.framework.Bundle,org.osgi.framework.BundleReference,org.osgi.framework.launch.Framework,org.osgi.framework.wiring.BundleRevisions
public class SlingFelix
extends org.apache.felix.framework.Felix
-
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 -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(org.osgi.framework.Bundle arg0) findEntries(String arg0, String arg1, boolean arg2) org.osgi.framework.Bundleorg.osgi.framework.BundleReturns the bundle from which the given class has been loaded ornullif the class has not been loaded through any of the bundles in this framework.org.osgi.framework.BundleContextgetDataFile(String arg0) getEntryPaths(String arg0) getHeaders(String arg0) org.osgi.framework.ServiceReference[]getResource(String arg0) getResources(String arg0) List<org.osgi.framework.wiring.BundleRevision> org.osgi.framework.ServiceReference[]getSignerCertificates(int arg0) intgetState()org.osgi.framework.Versionvoidrestart()voidstop()voidstop(int status) voidupdate()voidupdate(InputStream is) Methods inherited from class org.apache.felix.framework.Felix
adapt, getBundleId, getLastModified, getPersistentState, hasConnectFramework, hasPermission, init, init, setPersistentStateActive, setPersistentStateInactive, setPersistentStateUninstalled, start, start, toString, uninstall, waitForStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.osgi.framework.Bundle
getBundleContext, getDataFile, getHeaders, getHeaders, getRegisteredServices, getResource, getResources, getServicesInUse, getSignerCertificates, getState, getVersion, loadClassMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.osgi.framework.launch.Framework
findEntries, getEntry, getEntryPaths, getLocation, getSymbolicName
-
Constructor Details
-
Method Details
-
update
public void update() throws org.osgi.framework.BundleException- Specified by:
updatein interfaceorg.osgi.framework.Bundle- Specified by:
updatein interfaceorg.osgi.framework.launch.Framework- Overrides:
updatein classorg.apache.felix.framework.Felix- Throws:
org.osgi.framework.BundleException
-
update
- Specified by:
updatein interfaceorg.osgi.framework.Bundle- Specified by:
updatein interfaceorg.osgi.framework.launch.Framework- Overrides:
updatein classorg.apache.felix.framework.Felix- Throws:
org.osgi.framework.BundleException
-
restart
public void restart() throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
stop
public void stop() throws org.osgi.framework.BundleException- Specified by:
stopin interfaceorg.osgi.framework.Bundle- Specified by:
stopin interfaceorg.osgi.framework.launch.Framework- Overrides:
stopin classorg.apache.felix.framework.Felix- Throws:
org.osgi.framework.BundleException
-
stop
public void stop(int status) throws org.osgi.framework.BundleException - Specified by:
stopin interfaceorg.osgi.framework.Bundle- Specified by:
stopin interfaceorg.osgi.framework.launch.Framework- Overrides:
stopin classorg.apache.felix.framework.Felix- Throws:
org.osgi.framework.BundleException
-
getBundle
Returns the bundle from which the given class has been loaded ornullif the class has not been loaded through any of the bundles in this framework.This method delegates to Felix.getBundle(Class) to support the URLHandlers service implementation. See SLING-2554 for details.
- Parameters:
clazz- The class to check- Returns:
- The Bundle or
nullif the class has not been loaded through any of the bundles in this framework.
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()- Specified by:
getBundleContextin interfaceorg.osgi.framework.Bundle
-
getEntry
- Specified by:
getEntryin interfaceorg.osgi.framework.Bundle
-
getEntryPaths
- Specified by:
getEntryPathsin interfaceorg.osgi.framework.Bundle
-
findEntries
- Specified by:
findEntriesin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
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
-
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
-
getVersion
public org.osgi.framework.Version getVersion()- Specified by:
getVersionin interfaceorg.osgi.framework.Bundle
-
getSignerCertificates
- Specified by:
getSignerCertificatesin interfaceorg.osgi.framework.Bundle
-
loadClass
- Specified by:
loadClassin interfaceorg.osgi.framework.Bundle- Throws:
ClassNotFoundException
-
getDataFile
- Specified by:
getDataFilein interfaceorg.osgi.framework.Bundle
-
compareTo
public int compareTo(org.osgi.framework.Bundle arg0) - Specified by:
compareToin interfaceComparable<org.osgi.framework.Bundle>
-
getBundle
public org.osgi.framework.Bundle getBundle()- Specified by:
getBundlein interfaceorg.osgi.framework.BundleReference
-
getRevisions
- Specified by:
getRevisionsin interfaceorg.osgi.framework.wiring.BundleRevisions
-