Package org.nuxeo.ecm.webengine.jaxrs
Class ApplicationHost
java.lang.Object
javax.ws.rs.core.Application
org.nuxeo.ecm.webengine.jaxrs.ApplicationHost
public class ApplicationHost
extends javax.ws.rs.core.Application
A composite JAX-RS application that can receive fragments from outside.
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<ApplicationFragment>
Root resource classes to owner bundles.protected Map<String,
ResourceExtension> Sub-Resources extensionsprotected List<Reloadable>
protected final String
protected RenderingEngine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ApplicationFragment app) void
void
addReloadListener
(Reloadable listener) org.osgi.framework.Bundle
Get the bundle declaring the given root class.getExtension
(String id) getExtension
(BundleResource target, String segment) getName()
void
reload()
void
void
void
removeReloadListener
(Reloadable listener) void
setRendering
(RenderingEngine rendering)
-
Field Details
-
name
-
features
-
apps
-
listeners
-
rendering
-
extensions
Sub-Resources extensions -
class2Bundles
Root resource classes to owner bundles. This is a fall-back for FrameworkUtils.getBundle(class) since is not supported in all OSGi like frameworks
-
-
Constructor Details
-
ApplicationHost
-
-
Method Details
-
getExtension
-
getRendering
-
setRendering
-
addExtension
-
removeExtension
-
getExtension
-
getExtensions
-
getName
-
getFeatures
-
add
-
remove
-
getApplications
-
addReloadListener
-
removeReloadListener
-
reload
public void reload() -
getBundle
Get the bundle declaring the given root class. This method is not synchronized since it is assumed to be called after the application was created and before it was destroyed.
When a bundle is refreshing this method may throw exceptions but it is not usual to refresh bundles at runtime and making requests in same time. -
getClasses
- Overrides:
getClasses
in classjavax.ws.rs.core.Application
-
getSingletons
- Overrides:
getSingletons
in classjavax.ws.rs.core.Application
-