public void addResourceProvider(Resource.Type type, ResourceProvider provider) {
    resourceProviders.put(type, provider);
  }
Add a resource provider for the given type.

@param type      the resource type
@param provider  the resource provider
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java