org.glassfish.jersey.model.internal
Class RankedProvider<T>
java.lang.Object
org.glassfish.jersey.model.internal.RankedProvider<T>
- Type Parameters:
T - service provider contract Java type.
public class RankedProvider<T>
- extends Object
Jersey ranked provider model.
- Author:
- Michal Gajdos (michal.gajdos at oracle.com)
|
Constructor Summary |
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). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RankedProvider
public RankedProvider(T provider)
- Creates a new
RankedProvider instance. The rank of the provider is obtained from the Priority
annotation or is set to 5000 if the annotation is not present.
- Parameters:
provider - service provider to create a RankedProvider instance from.
RankedProvider
public RankedProvider(T provider,
int rank)
- Creates a new
RankedProvider instance for given provider with specific rank (> 0).
- Parameters:
provider - service provider to create a RankedProvider instance from.rank - rank of this provider.
getProvider
public T getProvider()
getRank
public int getRank()
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.