|
||||||||||
| 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 application contract provider model.
| Nested Class Summary | |
|---|---|
static class |
ContractProvider.Builder<T>
Contract provider model builder. |
| Field Summary | |
|---|---|
static int |
NO_PRIORITY
"No priority" constant. |
| Method Summary | ||
|---|---|---|
static
|
builder()
Create new contract provider model builder. |
|
static
|
builder(ContractProvider original)
Create new contract provider model builder from an existing one. |
|
static ContractProvider |
from(java.lang.Class<?> serviceClass)
Create a contract provider model by introspecting a contract provider/service class. |
|
static ContractProvider |
from(java.lang.Object service)
Create a contract provider model by introspecting the class of a contract provider/service instance. |
|
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()
Get the provider priority, if set, -1 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. |
|
| 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 from(java.lang.Class<?> serviceClass)
serviceClass - contract provider/service class.
null if the class does not
implement any recognized provider contracts.public static ContractProvider from(java.lang.Object service)
service - contract provider/service instance.
null if the instance does not
implement any recognized provider contracts.public static <T> ContractProvider.Builder<T> builder()
public static <T> ContractProvider.Builder<T> builder(ContractProvider original)
original - existing contract provider model.
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Scoped
getScope in interface Scopedpublic java.util.Set<java.lang.Class<?>> getContracts()
Contractpublic boolean isNameBound()
NameBound
isNameBound in interface NameBoundtrue if the component is bound, false otherwise.public int getPriority()
-1 if not set.
BindingPrioritypublic java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getNameBindings()
NameBound
getNameBindings in interface NameBound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||