Package org.nuxeo.ecm.webengine.jaxrs
Class ApplicationManager
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.ApplicationManager
-
- All Implemented Interfaces:
org.osgi.util.tracker.BundleTrackerCustomizer
public class ApplicationManager extends Object implements org.osgi.util.tracker.BundleTrackerCustomizer
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ApplicationHost>
apps
static String
DEFAULT_HOST
static String
HOST_ATTR
protected org.osgi.util.tracker.BundleTracker
tracker
-
Constructor Summary
Constructors Constructor Description ApplicationManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
ApplicationHost
getApplication(String name)
ApplicationHost
getApplication(ApplicationFragment fragment)
ApplicationHost[]
getApplications()
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)
-
-
-
Field Detail
-
HOST_ATTR
public static final String HOST_ATTR
- See Also:
- Constant Field Values
-
DEFAULT_HOST
public static final String DEFAULT_HOST
- See Also:
- Constant Field Values
-
tracker
protected org.osgi.util.tracker.BundleTracker tracker
-
apps
protected final Map<String,ApplicationHost> apps
-
-
Method Detail
-
getInstance
public static ApplicationManager getInstance()
-
start
public void start(org.osgi.framework.BundleContext context)
-
stop
public void stop(org.osgi.framework.BundleContext context)
-
getOrCreateApplication
public ApplicationHost getOrCreateApplication(String name)
-
getApplications
public ApplicationHost[] getApplications()
-
getApplication
public ApplicationHost getApplication(String name)
-
getApplication
public ApplicationHost getApplication(ApplicationFragment fragment)
-
addingBundle
public Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
- Specified by:
addingBundle
in interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
-
modifiedBundle
public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
- Specified by:
modifiedBundle
in interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
-
removedBundle
public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
- Specified by:
removedBundle
in interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
-
-