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>appsstatic StringDEFAULT_HOSTstatic StringHOST_ATTRprotected org.osgi.util.tracker.BundleTrackertracker 
- 
Constructor Summary
Constructors Constructor Description ApplicationManager() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectaddingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)ApplicationHostgetApplication(String name)ApplicationHostgetApplication(ApplicationFragment fragment)ApplicationHost[]getApplications()static ApplicationManagergetInstance()ApplicationHostgetOrCreateApplication(String name)voidmodifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)protected Map<String,String>parseAttrs(String expr)voidremovedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)voidstart(org.osgi.framework.BundleContext context)voidstop(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
 
 - 
 
- 
Constructor Detail
- 
ApplicationManager
public ApplicationManager()
 
 - 
 
- 
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:
 addingBundlein interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
 
- 
modifiedBundle
public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
- Specified by:
 modifiedBundlein interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
 
- 
removedBundle
public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
- Specified by:
 removedBundlein interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
 
- 
parseAttrs
protected Map<String,String> parseAttrs(String expr)
 
 - 
 
 -