Class RankedProvider<T>
java.lang.Object
org.glassfish.jersey.model.internal.RankedProvider<T>
- Type Parameters:
T
- service provider contract Java type.
Jersey ranked provider model.
- Author:
- Michal Gajdos
-
Constructor Summary
ConstructorDescriptionRankedProvider
(T provider) Creates a newRankedProvider
instance.RankedProvider
(T provider, int rank) Creates a newRankedProvider
instance for givenprovider
with specificrank
(> 0).RankedProvider
(T provider, int rank, Set<Type> contracts) Creates a newRankedProvider
instance for givenprovider
with specificrank
(> 0). -
Method Summary
-
Constructor Details
-
RankedProvider
Creates a newRankedProvider
instance. The rank of the provider is obtained from thePriority
annotation or is set to 5000 if the annotation is not present.- Parameters:
provider
- service provider to create aRankedProvider
instance from.
-
RankedProvider
Creates a newRankedProvider
instance for givenprovider
with specificrank
(> 0).- Parameters:
provider
- service provider to create aRankedProvider
instance from.rank
- rank of this provider.
-
RankedProvider
Creates a newRankedProvider
instance for givenprovider
with specificrank
(> 0).- Parameters:
provider
- service provider to create aRankedProvider
instance from.rank
- rank of this provider.contracts
- contracts implemented by the service provider
-
-
Method Details