use of io.quarkus.arc.AlternativePriority in project quarkus by quarkusio.
the class MockTracerProvider method createInMemoryExporter.
@Produces
@Singleton
@AlternativePriority(1)
public MockTracer createInMemoryExporter() {
MockTracer tracer = new MockTracer();
GlobalTracer.registerIfAbsent(tracer);
return tracer;
}
use of io.quarkus.arc.AlternativePriority in project quarkus by quarkusio.
the class OidcTokenCredentialProducer method currentAccessToken.
@Produces
@RequestScoped
@AlternativePriority(1)
AccessTokenCredential currentAccessToken() {
AccessTokenCredential cred = identity.getCredential(AccessTokenCredential.class);
if (cred == null || cred.getToken() == null) {
LOG.trace("AccessToken is null");
cred = new AccessTokenCredential();
}
return cred;
}
Aggregations