|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.model.ContractProvider
public final class ContractProvider
Jersey contract provider model.
| Nested Class Summary | |
|---|---|
static class |
ContractProvider.Builder
Contract provider model builder. |
| Field Summary | |
|---|---|
static int |
NO_PRIORITY
"No priority" constant. |
| Method Summary | |
|---|---|
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. |
Map<Class<?>,Integer> |
getContractMap()
Get the map of contracts and their priorities. |
Set<Class<?>> |
getContracts()
Get provided contracts recognized by Jersey. |
Set<Class<? extends Annotation>> |
getNameBindings()
Get the collection of name bindings attached to this component. |
int |
getPriority(Class<?> contract)
Get the provider contract priority, if set, default component provider, if not set. |
Class<? extends Annotation> |
getScope()
Get model component scope. |
boolean |
isNameBound()
Check if the component is bound or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_PRIORITY
| Method Detail |
|---|
public static ContractProvider.Builder builder()
public static ContractProvider.Builder builder(ContractProvider original)
original - existing contract provider model.
public Class<? extends Annotation> getScope()
Scoped
getScope in interface Scopedpublic Set<Class<?>> getContracts()
Contractpublic Map<Class<?>,Integer> getContractMap()
public boolean isNameBound()
NameBound
isNameBound in interface NameBoundtrue if the component is bound, false otherwise.public int getPriority(Class<?> contract)
contract - provider contract.
Prioritypublic Set<Class<? extends Annotation>> getNameBindings()
NameBound
getNameBindings in interface NameBound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||