Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine
Interface ApplicationManager

All Known Implementing Classes:
DefaultApplicationManager

public interface ApplicationManager

Author:
Bogdan Stefanescu

Method Summary
 void addApplication(org.osgi.framework.Bundle bundle, javax.ws.rs.core.Application app)
           
 boolean deployApplication(org.osgi.framework.Bundle bundle)
          Deploy the JAX-RS application if any is found in the given bundle.
 BundledApplication getApplication(java.lang.String bundleId)
           
 BundledApplication[] getApplications()
           
 java.lang.Object getContribution(Resource target, java.lang.String key)
           
 java.util.List<ResourceContribution> getContributions(java.lang.Class<? extends ExtensibleResource> target, java.lang.String category)
           
 java.util.List<ResourceContribution> getContributions(ExtensibleResource target, java.lang.String category)
           
 ModuleHandler getModuleHandler(java.lang.String appId)
           
 ModuleHandler getModuleHandlerFor(java.lang.Class<?> rootResource)
           
 ModuleHandler[] getModuleHandlers()
           
 void reload()
          Reload modules - this is useful for hot reload when application classes changes
 void removeApplication(org.osgi.framework.Bundle bundle)
           
 

Method Detail

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(java.lang.String bundleId)

getApplications

BundledApplication[] getApplications()

getModuleHandler

ModuleHandler getModuleHandler(java.lang.String appId)

getModuleHandlers

ModuleHandler[] getModuleHandlers()

getContribution

java.lang.Object getContribution(Resource target,
                                 java.lang.String key)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getContributions

java.util.List<ResourceContribution> getContributions(ExtensibleResource target,
                                                      java.lang.String category)

getContributions

java.util.List<ResourceContribution> getContributions(java.lang.Class<? extends ExtensibleResource> target,
                                                      java.lang.String category)

getModuleHandlerFor

ModuleHandler getModuleHandlerFor(java.lang.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 java.lang.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:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.