All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.javaagent.tooling.bootstrap.BootstrapPackagesBuilder Maven / Gradle / Ivy

There is a newer version: 2.12.0-alpha
Show newest version
/*
 * 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