public class WebEngineModule extends javax.ws.rs.core.Application implements ApplicationFactory
Modifier and Type | Field and Description |
---|---|
protected org.osgi.framework.Bundle |
bundle |
protected ModuleConfiguration |
cfg |
static String |
WEBADAPTER_ANNO |
static String |
WEBOBJECT_ANNO |
Constructor and Description |
---|
WebEngineModule() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Application |
getApplication(org.osgi.framework.Bundle bundle,
Map<String,String> args)
Create a new application instance given the bundle declaring the application and the attributes specified in the
manifest.
|
org.osgi.framework.Bundle |
getBundle() |
Set<Class<?>> |
getClasses() |
ModuleConfiguration |
getConfiguration() |
String |
getId() |
Module |
getModule() |
Class<?>[] |
getWebTypes() |
public static final String WEBOBJECT_ANNO
public static final String WEBADAPTER_ANNO
protected org.osgi.framework.Bundle bundle
protected ModuleConfiguration cfg
public WebEngineModule()
public ModuleConfiguration getConfiguration()
public org.osgi.framework.Bundle getBundle()
public Set<Class<?>> getClasses()
getClasses
in class javax.ws.rs.core.Application
public Class<?>[] getWebTypes()
public javax.ws.rs.core.Application getApplication(org.osgi.framework.Bundle bundle, Map<String,String> args) throws ReflectiveOperationException, IOException
ApplicationFactory
getApplication
in interface ApplicationFactory
bundle
- the bundle defining the applicationargs
- the arguments parsed from manifest WebModule entry.ReflectiveOperationException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.