org.nuxeo.ecm.webengine
Interface ApplicationManager
- All Known Implementing Classes:
- DefaultApplicationManager
public interface ApplicationManager
- Author:
- Bogdan Stefanescu
addApplication
void addApplication(org.osgi.framework.Bundle bundle,
javax.ws.rs.core.Application app)
removeApplication
void removeApplication(org.osgi.framework.Bundle bundle)
getApplication
BundledApplication getApplication(String bundleId)
getApplications
BundledApplication[] getApplications()
getModuleHandler
ModuleHandler getModuleHandler(String appId)
getModuleHandlers
ModuleHandler[] getModuleHandlers()
getContribution
Object getContribution(Resource target,
String key)
throws Exception
- Throws:
Exception
getContributions
List<ResourceContribution> getContributions(ExtensibleResource target,
String category)
getContributions
List<ResourceContribution> getContributions(Class<? extends ExtensibleResource> target,
String category)
getModuleHandlerFor
ModuleHandler getModuleHandlerFor(Class<?> rootResource)
reload
void reload()
- Reload modules - this is useful for hot reload when application classes changes
deployApplication
boolean deployApplication(org.osgi.framework.Bundle bundle)
throws Exception
- Deploy the JAX-RS application if any is found in the given bundle.
If no JAX-RS application is found return false, otherwise deploy it and return true.
- Parameters:
bundle
- the bundle that may contain a JAX-RS application
- Returns:
- true if a JAX-RS application was found and deployed, false otherwise
- Throws:
Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.