@ Override public void registerOsgiProviders ( Collection < Object > providers ) throws FhirConfigurationException { if ( null == providers ) { throw new NullPointerException ( "FHIR Provider list cannot be null" ) ; } try { super . registerProviders ( providers ) ; for ( Object provider : providers ) { log . trace ( "registered provider. class [" + provider . getClass ( ) . getName ( ) + "]" ) ; this . serverProviders . add ( provider ) ; } } catch ( Exception e ) { log . error ( "Error registering FHIR Providers" , e ) ; throw new FhirConfigurationException ( "Error registering FHIR Providers" , e ) ; } }
Dynamically registers a list of providers with the RestfulServer