public class ApplicationManager extends Object implements org.osgi.util.tracker.BundleTrackerCustomizer
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ApplicationHost> |
apps |
static String |
DEFAULT_HOST |
static String |
HOST_ATTR |
protected org.osgi.util.tracker.BundleTracker |
tracker |
| Constructor and Description |
|---|
ApplicationManager() |
| Modifier and Type | Method and Description |
|---|---|
Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event) |
ApplicationHost |
getApplication(ApplicationFragment fragment) |
ApplicationHost |
getApplication(String name) |
static ApplicationManager |
getInstance() |
ApplicationHost |
getOrCreateApplication(String name) |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object) |
protected Map<String,String> |
parseAttrs(String expr) |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object) |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
public static final String HOST_ATTR
public static final String DEFAULT_HOST
protected org.osgi.util.tracker.BundleTracker tracker
protected Map<String,ApplicationHost> apps
public ApplicationManager()
public static ApplicationManager getInstance()
public void start(org.osgi.framework.BundleContext context)
public void stop(org.osgi.framework.BundleContext context)
public ApplicationHost getOrCreateApplication(String name)
public ApplicationHost getApplication(String name)
public ApplicationHost getApplication(ApplicationFragment fragment)
public Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerpublic void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerpublic void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerprotected Map<String,String> parseAttrs(String expr)
Copyright © 2016 Nuxeo SA. All rights reserved.