T
- service provider contract Java type.public class RankedProvider<T> extends Object
Constructor and Description |
---|
RankedProvider(T provider)
Creates a new
RankedProvider instance. |
RankedProvider(T provider,
int rank)
Creates a new
RankedProvider instance for given provider with specific rank (> 0). |
RankedProvider(T provider,
int rank,
Set<Type> contracts)
Creates a new
RankedProvider instance for given provider with specific rank (> 0). |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
getContractTypes()
Get me set of implemented contracts.
|
T |
getProvider() |
int |
getRank() |
String |
toString() |
public RankedProvider(T provider)
RankedProvider
instance. The rank of the provider is obtained from the Priority
annotation or is set to 5000 if the annotation is not present.provider
- service provider to create a RankedProvider
instance from.public RankedProvider(T provider, int rank)
RankedProvider
instance for given provider
with specific rank
(> 0).provider
- service provider to create a RankedProvider
instance from.rank
- rank of this provider.public RankedProvider(T provider, int rank, Set<Type> contracts)
RankedProvider
instance for given provider
with specific rank
(> 0).provider
- service provider to create a RankedProvider
instance from.rank
- rank of this provider.contracts
- contracts implemented by the service providerCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.