public RegistryEntry addEntry ( Class < ? > resource , RegistryEntry registryEntry ) { resources . put ( resource , registryEntry ) ; registryEntry . initialize ( moduleRegistry ) ; logger . debug ( "Added resource {} to ResourceRegistry" , resource . getName ( ) ) ; return registryEntry ; }
Adds a new resource definition to a registry .