| Modifier and Type | Class and Description |
|---|---|
static class |
ContractProvider.Builder
Contract provider model builder.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Class<?>,java.lang.Integer> |
contracts |
private int |
defaultPriority |
private java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
nameBindings |
static int |
NO_PRIORITY
"No priority" constant.
|
private java.lang.Class<? extends java.lang.annotation.Annotation> |
scope |
| Modifier | Constructor and Description |
|---|---|
private |
ContractProvider(java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts,
int defaultPriority,
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> nameBindings) |
| Modifier and Type | Method and Description |
|---|---|
static ContractProvider.Builder |
builder()
Create new contract provider model builder.
|
static ContractProvider.Builder |
builder(ContractProvider original)
Create new contract provider model builder from an existing one.
|
java.util.Map<java.lang.Class<?>,java.lang.Integer> |
getContractMap()
Get the map of contracts and their priorities.
|
java.util.Set<java.lang.Class<?>> |
getContracts()
Get provided contracts recognized by Jersey.
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getNameBindings()
Get the collection of name bindings attached to this component.
|
int |
getPriority(java.lang.Class<?> contract)
Get the provider contract priority, if set, default component provider, if not set.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Get model component scope.
|
boolean |
isNameBound()
Check if the component is bound or not.
|
public static final int NO_PRIORITY
private final java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts
private final int defaultPriority
private final java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> nameBindings
private final java.lang.Class<? extends java.lang.annotation.Annotation> scope
private ContractProvider(java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts,
int defaultPriority,
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> nameBindings)
public static ContractProvider.Builder builder()
public static ContractProvider.Builder builder(ContractProvider original)
original - existing contract provider model.public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Scopedpublic java.util.Set<java.lang.Class<?>> getContracts()
Contractpublic java.util.Map<java.lang.Class<?>,java.lang.Integer> getContractMap()
public boolean isNameBound()
NameBoundisNameBound in interface NameBoundtrue if the component is bound, false otherwise.public int getPriority(java.lang.Class<?> contract)
contract - provider contract.Prioritypublic java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getNameBindings()
NameBoundgetNameBindings in interface NameBound