public abstract class RESTApplicationAbstract extends Application implements ApplicationConstant
An EBX® web application (war), that provides JAX-RS services,
must supply a concrete subclass of this abstract class.
It must be annotated with @ApplicationPath
to define the base URI. The subclass is expected to define:
If the web application also implements an EBX® module it must also be registered.
See JSR 370: JavaTM API for RESTful Web Services - Specification for more information on JAX-RS.
KEY_SERIALIZE_NULL_VALUES, REST_DEFAULT_APPLICATION_PATH
Constructor and Description |
---|
RESTApplicationAbstract(Consumer<ApplicationConfigurator> aConfigurator)
Creates a new REST Toolkit application configuration initialized with
mandatory and custom properties, resources and providers.
|
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getClasses()
This method cannot be overridden, use instead
ApplicationConfigurator.register(Class) . |
Map<String,Object> |
getProperties()
This method cannot be overridden, use instead
ApplicationConfigurator.addProperties(Map) . |
Set<Object> |
getSingletons()
This method cannot be overridden, use instead
ApplicationConfigurator.register(Object) . |
public RESTApplicationAbstract(Consumer<ApplicationConfigurator> aConfigurator)
aConfigurator
- This parameter is used to define the custom components of
that REST Toolkit application.public final Set<Class<?>> getClasses()
ApplicationConfigurator.register(Class)
.getClasses
in class Application
Application.getClasses()
public final Map<String,Object> getProperties()
ApplicationConfigurator.addProperties(Map)
.getProperties
in class Application
Application.getProperties()
public final Set<Object> getSingletons()
ApplicationConfigurator.register(Object)
.getSingletons
in class Application
Application.getSingletons()