/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }
/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance. The rank of the provider is obtained from the {@link javax.annotation.Priority} * annotation or is set to {@value javax.ws.rs.Priorities#USER} if the annotation is not present. * * @param provider service provider to create a {@code RankedProvider} instance from. */ public RankedProvider(final T provider) { this.provider = provider; this.rank = computeRank(provider, ContractProvider.NO_PRIORITY); this.contractTypes = null; }
/** * Creates a new {@code RankedProvider} instance for given {@code provider} with specific {@code rank} (> 0). * * @param provider service provider to create a {@code RankedProvider} instance from. * @param rank rank of this provider. * @param contracts contracts implemented by the service provider */ public RankedProvider(final T provider, final int rank, final Set<Type> contracts) { this.provider = provider; this.rank = computeRank(provider, rank); this.contractTypes = contracts; }