public class ApplicationHost extends javax.ws.rs.core.Application
Modifier and Type | Field and Description |
---|---|
protected List<ApplicationFragment> |
apps |
protected HashMap<Class<?>,org.osgi.framework.Bundle> |
class2Bundles
Root resource classes to owner bundles.
|
protected Map<String,ResourceExtension> |
extensions
Sub-Resources extensions
|
protected Map<String,Boolean> |
features |
protected List<Reloadable> |
listeners |
protected String |
name |
protected RenderingEngine |
rendering |
Constructor and Description |
---|
ApplicationHost(String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(ApplicationFragment app) |
void |
addExtension(ResourceExtension xt) |
void |
addReloadListener(Reloadable listener) |
ApplicationFragment[] |
getApplications() |
org.osgi.framework.Bundle |
getBundle(Class<?> clazz)
Get the bundle declaring the given root class.
|
Set<Class<?>> |
getClasses() |
BundleResource |
getExtension(BundleResource target,
String segment) |
ResourceExtension |
getExtension(String id) |
ResourceExtension[] |
getExtensions(ResourceExtension xt) |
Map<String,Boolean> |
getFeatures() |
String |
getName() |
RenderingEngine |
getRendering() |
Set<Object> |
getSingletons() |
void |
reload() |
void |
remove(ApplicationFragment app) |
void |
removeExtension(ResourceExtension xt) |
void |
removeReloadListener(Reloadable listener) |
void |
setRendering(RenderingEngine rendering) |
protected final List<ApplicationFragment> apps
protected List<Reloadable> listeners
protected RenderingEngine rendering
protected Map<String,ResourceExtension> extensions
protected HashMap<Class<?>,org.osgi.framework.Bundle> class2Bundles
public ApplicationHost(String name)
public BundleResource getExtension(BundleResource target, String segment)
public RenderingEngine getRendering()
public void setRendering(RenderingEngine rendering)
public void addExtension(ResourceExtension xt)
public void removeExtension(ResourceExtension xt)
public ResourceExtension getExtension(String id)
public ResourceExtension[] getExtensions(ResourceExtension xt)
public Map<String,Boolean> getFeatures()
public void add(ApplicationFragment app)
public void remove(ApplicationFragment app)
public ApplicationFragment[] getApplications()
public void addReloadListener(Reloadable listener)
public void removeReloadListener(Reloadable listener)
public void reload()
public org.osgi.framework.Bundle getBundle(Class<?> clazz)
clazz
- public Set<Class<?>> getClasses()
getClasses
in class javax.ws.rs.core.Application
public Set<Object> getSingletons()
getSingletons
in class javax.ws.rs.core.Application
Copyright © 2016 Nuxeo SA. All rights reserved.