V
- the type of the registered value.public abstract class ComponentRegistry<V>
extends java.lang.Object
Constructor and Description |
---|
ComponentRegistry() |
Modifier and Type | Method and Description |
---|---|
V |
get(java.lang.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(java.lang.String instrumentationName,
java.lang.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.
|
java.util.Collection<V> |
getComponents()
Returns a
Collection view of the registered components. |
abstract V |
newComponent(InstrumentationLibraryInfo instrumentationLibraryInfo) |
public final V get(java.lang.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(java.lang.String instrumentationName, @Nullable java.lang.String instrumentationVersion)
instrumentationName
- the name of the instrumentation library.instrumentationVersion
- the version of the instrumentation library.public final java.util.Collection<V> getComponents()
Collection
view of the registered components.Collection
view of the registered components.public abstract V newComponent(InstrumentationLibraryInfo instrumentationLibraryInfo)