V
- the type of the registered value.public abstract class ComponentRegistry<V> extends Object
Constructor and Description |
---|
ComponentRegistry() |
Modifier and Type | Method and Description |
---|---|
V |
get(String instrumentationName)
Returns the registered value associated with this name and
null version if any,
otherwise creates a new instance and associates it with the given name and null
version. |
V |
get(String instrumentationName,
String instrumentationVersion)
Returns the registered value associated with this name and version if any, otherwise creates a
new instance and associates it with the given name and version.
|
Collection<V> |
getComponents()
Returns a
Collection view of the registered components. |
abstract V |
newComponent(InstrumentationLibraryInfo instrumentationLibraryInfo) |
public final V get(String instrumentationName)
null
version if any,
otherwise creates a new instance and associates it with the given name and null
version.instrumentationName
- the name of the instrumentation library.null
version.public final V get(String instrumentationName, @Nullable String instrumentationVersion)
instrumentationName
- the name of the instrumentation library.instrumentationVersion
- the version of the instrumentation library.public final Collection<V> getComponents()
Collection
view of the registered components.Collection
view of the registered components.public abstract V newComponent(InstrumentationLibraryInfo instrumentationLibraryInfo)