|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.model.internal.ProviderBag.Builder
public static final class ProviderBag.Builder
Provider bag builder.
| Constructor Summary | |
|---|---|
ProviderBag.Builder()
|
|
ProviderBag.Builder(ProviderBag.Builder original)
|
|
ProviderBag.Builder(ProviderBag original)
|
|
| Method Summary | |
|---|---|
ProviderBag |
build()
Build a provider bag. |
boolean |
register(Class<?> providerClass,
boolean isResource)
Register a class as a contract provider. |
boolean |
register(Class<?> providerClass,
int bindingPriority,
Set<Class<?>> contracts)
Register a class as a contract provider. |
boolean |
register(Object provider,
boolean isResource)
Register an instance as a contract provider. |
boolean |
register(Object provider,
int bindingPriority,
Set<Class<?>> contracts)
Register an instance as a contract provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProviderBag.Builder()
public ProviderBag.Builder(ProviderBag.Builder original)
public ProviderBag.Builder(ProviderBag original)
| Method Detail |
|---|
public ProviderBag build()
public boolean register(Class<?> providerClass,
boolean isResource)
providerClass - class to be introspected as a contract provider and registered.isResource - if true the class is a treated as a resource class, i.e. it
will not be added to the set of provider classes.
true if the class was successfully registered as provider.
public boolean register(Class<?> providerClass,
int bindingPriority,
Set<Class<?>> contracts)
providerClass - class to be introspected as a contract provider and registered.bindingPriority - priority to bind the providers contracts to.contracts - contracts to bind the provider to.
true if the class was successfully registered as provider.
public boolean register(Object provider,
boolean isResource)
provider - instance to be introspected as a contract provider and registered.isResource - if true the instance is a treated as a resource class, i.e. it
will not be added to the set of provider instance.
true if the instance was successfully registered as provider.
public boolean register(Object provider,
int bindingPriority,
Set<Class<?>> contracts)
provider - instance to be introspected as a contract provider and registered.bindingPriority - priority to bind the providers contracts to.contracts - contracts to bind the provider to.
true if the instance was successfully registered as provider.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||