public class JBossOSGiAdapter extends org.jboss.system.ListenerServiceMBeanSupport implements JBossOSGiAdapterMBean
If you need to use this service inside multiple EARs you must use isolated class loaders.
Constructor and Description |
---|
JBossOSGiAdapter() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.deployment.DeploymentInfo |
getEARDeployment()
Gets the EAR deployment or null if no parent EAR was found.
|
String |
getHomeLocation() |
static JBossOSGiAdapter |
getInstance()
This method is safe only when using isolated EARs if there are multiple
nuxeo EARs in the system.
|
OSGiAdapter |
getOSGi() |
void |
handleNotification2(Notification notification,
Object handback)
Handles notification.
|
BundleImpl |
installBundle(String symbolicName,
org.jboss.deployment.DeploymentInfo di) |
String |
listBundles() |
void |
uninstallBundle(String symbolicName,
org.jboss.deployment.DeploymentInfo di) |
getSubscriptions, handleNotification, setSubscriptionList, setSubscriptions, subscribe, subscribe, subscribe, unsubscribe
create, destroy, getDeploymentInfo, getLog, getName, getServer, getServiceName, getState, getStateString, jbossInternalLifecycle, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static JBossOSGiAdapter getInstance()
public static org.jboss.deployment.DeploymentInfo getEARDeployment()
This method should be used only on single Nuxeo deployments or when using isolated class loaders for Nuxeo ears.
public OSGiAdapter getOSGi()
public BundleImpl installBundle(String symbolicName, org.jboss.deployment.DeploymentInfo di) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public void uninstallBundle(String symbolicName, org.jboss.deployment.DeploymentInfo di) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public String listBundles()
listBundles
in interface JBossOSGiAdapterMBean
public String getHomeLocation()
getHomeLocation
in interface JBossOSGiAdapterMBean
public void handleNotification2(Notification notification, Object handback)
handleNotification2
in class org.jboss.system.ListenerServiceMBeanSupport
Copyright © 2013 Nuxeo SA. All Rights Reserved.