Modifier and Type | Class and Description |
---|---|
static class |
ContractProvider.Builder
Contract provider model builder.
|
Modifier and Type | Field and Description |
---|---|
static int |
NO_PRIORITY
"No priority" constant.
|
Modifier and Type | Method and Description |
---|---|
static ContractProvider.Builder |
builder(Class<?> implementationClass)
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.
|
Class<?> |
getImplementationClass()
Get the implementation class which the contracts belong to.
|
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.
|
public static final int NO_PRIORITY
public static ContractProvider.Builder builder(Class<?> implementationClass)
implementationClass
- class which the contracts belong to.public static ContractProvider.Builder builder(ContractProvider original)
original
- existing contract provider model.public Class<? extends Annotation> getScope()
Scoped
public Class<?> getImplementationClass()
public Set<Class<?>> getContracts()
Contract
public Map<Class<?>,Integer> getContractMap()
public boolean isNameBound()
NameBound
isNameBound
in interface NameBound
true
if the component is bound, false
otherwise.public int getPriority(Class<?> contract)
contract
- provider contract.Priority
public Set<Class<? extends Annotation>> getNameBindings()
NameBound
getNameBindings
in interface NameBound
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.