
io.opentelemetry.javaagent.tooling.bootstrap.BootstrapPackagesBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-javaagent-tooling Show documentation
Show all versions of opentelemetry-javaagent-tooling Show documentation
Instrumentation of Java libraries using OpenTelemetry.
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.tooling.bootstrap;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.util.Collection;
/**
* This interface exposes a way to define which packages/classes are present in the bootstrap class
* loader.
*
* This interface should not be implemented by the javaagent extension developer - the javaagent
* will provide the implementation.
*/
public interface BootstrapPackagesBuilder {
/**
* Mark {@code classNameOrPrefix} as one that belongs to the bootstrap class loader.
*
* @return {@code this}
*/
@CanIgnoreReturnValue
BootstrapPackagesBuilder add(String classNameOrPrefix);
/**
* Mark all elements of {@code classNamesOrPrefixes} as ones that belongs to the bootstrap class
* loader.
*
* @return {@code this}
*/
@CanIgnoreReturnValue
BootstrapPackagesBuilder addAll(Collection classNamesOrPrefixes);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy