Package com.orchestranetworks.rest
Class RESTApplicationAbstract
java.lang.Object
jakarta.ws.rs.core.Application
com.orchestranetworks.rest.RESTApplicationAbstract
- All Implemented Interfaces:
ApplicationConstant
Defines the components for a REST Toolkit JAX-RS application.
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:
- which packages contain the REST resources classes or to register each class explicitly,
- custom application-wide properties.
If the web application also implements an EBX® module it must also be registered.
See Jakarta RESTful Web Services 3.1 - Specification for more information.
- Since:
- 5.9.0
-
Field Summary
Fields inherited from interface com.orchestranetworks.rest.ApplicationConstant
KEY_SERIALIZE_NULL_VALUES, REST_DEFAULT_APPLICATION_PATH, REST_DEFAULT_OPENAPI_APPLICATION_PATH -
Constructor Summary
ConstructorsConstructorDescriptionRESTApplicationAbstract(Consumer<ApplicationConfigurator> aConfigurator) Creates a new REST Toolkit application configuration initialized with mandatory and custom properties, resources and providers. -
Method Summary
Modifier and TypeMethodDescriptionThis method cannot be overridden, use insteadApplicationConfigurator.register(Class).This method cannot be overridden, use insteadApplicationConfigurator.addProperties(Map).This method cannot be overridden, use insteadApplicationConfigurator.register(Object).
-
Constructor Details
-
RESTApplicationAbstract
Creates a new REST Toolkit application configuration initialized with mandatory and custom properties, resources and providers.- Parameters:
aConfigurator- This parameter is used to define the custom components of that REST Toolkit application.
-
-
Method Details
-
getClasses
This method cannot be overridden, use insteadApplicationConfigurator.register(Class).- Overrides:
getClassesin classApplication- See Also:
-
getProperties
This method cannot be overridden, use insteadApplicationConfigurator.addProperties(Map).- Overrides:
getPropertiesin classApplication- See Also:
-
getSingletons
This method cannot be overridden, use insteadApplicationConfigurator.register(Object).- Overrides:
getSingletonsin classApplication- See Also:
-