public class ResourceTypeMapper extends Object
ResourceType
s by name.
This class is used when resolving DeferredGenericTypeResource
resource types.
This class could be removed once all of the ServiceCollector
implementations have been migrated to use the CollectionSetBuilder
.
At which point we could move the resource lookup and persistence logic outside the collectors and into collectd.Modifier and Type | Method and Description |
---|---|
static ResourceTypeMapper |
getInstance() |
ResourceType |
getResourceType(String name) |
ResourceType |
getResourceTypeWithFallback(String name,
String fallback) |
void |
setResourceTypeMapper(java.util.function.Function<String,ResourceType> mapper) |
public static ResourceTypeMapper getInstance()
public void setResourceTypeMapper(java.util.function.Function<String,ResourceType> mapper)
public ResourceType getResourceType(String name)
public ResourceType getResourceTypeWithFallback(String name, String fallback)
Copyright © 2020. All rights reserved.