public class ProvidedResourceScanner extends Object
ProvidesResources and adds any resources listed to its FhirContext's resource
definition list. This makes the profile generator find the classes.ProvidesResources| Constructor and Description |
|---|
ProvidedResourceScanner(FhirContext theContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeProvidedResources(Object theProvider)
Remove any metadata that was added by any
ProvidesResources annotation
present in theProvider. |
void |
scanForProvidedResources(Object theProvider)
If
theProvider is tagged with the ProvidesResources annotation, this method will add every
resource listed by the resources method. |
public ProvidedResourceScanner(FhirContext theContext)
theContext - - context whose resource definition list is to be updated by the scannerpublic void scanForProvidedResources(Object theProvider)
theProvider is tagged with the ProvidesResources annotation, this method will add every
resource listed by the resources method.
Notes:
theProvider isn't annotated with resources nothing is done; it's expected that most
RestfulServers and ResourceProviders won't be annotated.resources that doesn't implement IResource will generate a warning in the
log.theProvider - - Normally, either a ca.uhn.fhir.rest.server.RestfulServer or a
ca.uhn.fhir.rest.server.IResourceProvider that might be annotated with
ProvidesResourcespublic void removeProvidedResources(Object theProvider)
ProvidesResources annotation
present in theProvider. This method is callled from RestfulService
when it is unregistering a Resource Provider.theProvider - - Normally a ca.uhn.fhir.rest.server.IResourceProvider that might
be annotated with ProvidesResourcesCopyright © 2014–2017 University Health Network. All rights reserved.