org.apache.sling.launchpad.base.impl
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
| 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 |
|
Method Summary |
org.osgi.framework.Bundle |
getBundle(Class<?> clazz)
Returns the bundle from which the given class has been loaded or
null if the class has not been loaded through any
of the bundles in this framework. |
void |
restart()
|
void |
stop()
|
void |
stop(int status)
|
void |
update()
|
void |
update(InputStream is)
|
| Methods inherited from class org.apache.felix.framework.Felix |
adapt, getBundleId, getHooks, getLastModified, getPersistentState, hasPermission, init, setPersistentStateActive, setPersistentStateInactive, setPersistentStateUninstalled, start, start, toString, uninstall, waitForStop |
SlingFelix
public SlingFelix(Notifiable notifiable,
Map<?,?> props)
throws Exception
- Throws:
Exception
update
public void update()
throws org.osgi.framework.BundleException
- Specified by:
update in interface org.osgi.framework.Bundle- Specified by:
update in interface org.osgi.framework.launch.Framework- Overrides:
update in class org.apache.felix.framework.Felix
- Throws:
org.osgi.framework.BundleException
update
public void update(InputStream is)
throws org.osgi.framework.BundleException
- Specified by:
update in interface org.osgi.framework.Bundle- Specified by:
update in interface org.osgi.framework.launch.Framework- Overrides:
update in class org.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:
stop in interface org.osgi.framework.Bundle- Specified by:
stop in interface org.osgi.framework.launch.Framework- Overrides:
stop in class org.apache.felix.framework.Felix
- Throws:
org.osgi.framework.BundleException
stop
public void stop(int status)
throws org.osgi.framework.BundleException
- Specified by:
stop in interface org.osgi.framework.Bundle- Specified by:
stop in interface org.osgi.framework.launch.Framework- Overrides:
stop in class org.apache.felix.framework.Felix
- Throws:
org.osgi.framework.BundleException
getBundle
public org.osgi.framework.Bundle getBundle(Class<?> clazz)
- Returns the bundle from which the given class has been loaded or
null if 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
null if the class has not been
loaded through any of the bundles in this framework.
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.