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

athenz.shade.zts.org.glassfish.jersey.client.spi.ClientBuilderListener Maven / Gradle / Ivy

/*
 * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0, which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the
 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
 * version 2 with the GNU Classpath Exception, which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 */

package athenz.shade.zts.athenz.shade.zts.org.glassfish.jersey.client.spi;

import athenz.shade.zts.athenz.shade.zts.org.glassfish.jersey.Beta;

import athenz.shade.zts.athenz.shade.zts.javax.ws.rs.client.ClientBuilder;

/**
 * 

* Implementations of this interface will be notified when new ClientBuilder * instances are being constructed. This will allow implementations to register * providers on the ClientBuilder, and is intended for global providers. *

*

* In order for the ClientBuilder to call implementations of this interface, * the implementation must be specified such that a ServiceLoader can find it - * i.e. it must be specified in the * META-INF/services/athenz.shade.zts.athenz.shade.zts.org.glassfish.jersey.client.spi.ClientBuilderListener * file in an archive on the current thread's context classloader's * class path. *

*

* Note that the onNewBuilder method will be called when the * ClientBuilder is constructed, not when it's build method is * invoked. This allows the caller to override global providers if they desire. *

*

* The ClientBuilderListener are invoked in an order given by it's {@code @Priority}. * The default is {@code Priorities.USER}. *

* @since 2.32 */ // Must not be annotated with @Contract @Beta public interface ClientBuilderListener { void onNewBuilder(ClientBuilder builder); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy