public void registerProviders ( Collection < ? > theProviders ) { Validate . noNullElements ( theProviders , "theProviders must not contain any null elements" ) ; myProviderRegistrationMutex . lock ( ) ; try { if ( ! myStarted ) { for ( Object provider : theProviders ) { ourLog . info ( "Registration of provider [" + provider . getClass ( ) . getName ( ) + "] will be delayed until FHIR server startup" ) ; if ( provider instanceof IResourceProvider ) { myResourceProviders . add ( ( IResourceProvider ) provider ) ; } else { myPlainProviders . add ( provider ) ; } } return ; } } finally { myProviderRegistrationMutex . unlock ( ) ; } registerProviders ( theProviders , false ) ; }
Register a group of theProviders . These could be Resource Providers plain theProviders or a mixture of the two .