Class DefaultFhirRegistry
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.DefaultFhirRegistry
- All Implemented Interfaces:
FhirRegistry
Default implementation of
FhirRegistry
- Since:
- 3.2
- Author:
- Christian Ohr
-
Method Summary
Modifier and TypeMethodDescriptionstatic FhirRegistry
getFhirRegistry
(String name) Lookup or create a new FHIR registry if none exists with the given (servlet) nameboolean
hasServlet
(String servletName) Returns true if there is already a registered FHIR servlet with the provided namevoid
register
(RestfulServer servlet) Registers the FHIR servlet, usually during its init phase.void
Registers the FHIR resource provider.static FhirRegistry
removeFhirRegistry
(String name) Removes the FHIR registry with the given (servlet) namevoid
unregister
(RestfulServer servlet) Unregisters the FHIR servlet, usually during its destroy phasevoid
unregister
(Object resourceProvider) Unregisters the FHIR resource provider.
-
Method Details
-
getFhirRegistry
Lookup or create a new FHIR registry if none exists with the given (servlet) name -
removeFhirRegistry
Removes the FHIR registry with the given (servlet) name -
register
Description copied from interface:FhirRegistry
Registers the FHIR resource provider.- Specified by:
register
in interfaceFhirRegistry
- Parameters:
resourceProvider
- resource provider
-
unregister
Description copied from interface:FhirRegistry
Unregisters the FHIR resource provider.- Specified by:
unregister
in interfaceFhirRegistry
- Parameters:
resourceProvider
- resource provider
-
register
Description copied from interface:FhirRegistry
Registers the FHIR servlet, usually during its init phase.- Specified by:
register
in interfaceFhirRegistry
- Parameters:
servlet
- FHIR servlet
-
unregister
Description copied from interface:FhirRegistry
Unregisters the FHIR servlet, usually during its destroy phase- Specified by:
unregister
in interfaceFhirRegistry
- Parameters:
servlet
- FHIR servlet
-
hasServlet
Description copied from interface:FhirRegistry
Returns true if there is already a registered FHIR servlet with the provided name- Specified by:
hasServlet
in interfaceFhirRegistry
- Parameters:
servletName
- name of the servlet- Returns:
- true if there is already a registered FHIR servlet with this name
-