Package org.nuxeo.ecm.webengine.rest
Class ApplicationHost
java.lang.Object
jakarta.ws.rs.core.Application
org.nuxeo.ecm.webengine.rest.ApplicationHost
public class ApplicationHost
extends jakarta.ws.rs.core.Application
A composite Jakarta RS application that can receive fragments from outside.
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ApplicationFragment> Root resource classes to owner bundles.protected Map<String, ResourceExtension> Sub-Resources extensionsprotected List<Reloadable> protected final Stringprotected RenderingEngine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ApplicationFragment app) voidvoidaddReloadListener(Reloadable listener) org.osgi.framework.BundleGet the bundle declaring the given root class.getExtension(String id) getExtension(BundleResource target, String segment) getName()Deprecated.voidreload()voidvoidvoidremoveReloadListener(Reloadable listener) voidsetRendering(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:
getClassesin classjakarta.ws.rs.core.Application
-
getSingletons
Deprecated.- Overrides:
getSingletonsin classjakarta.ws.rs.core.Application
-
getProperties
- Overrides:
getPropertiesin classjakarta.ws.rs.core.Application
-