Class Binding<T, D extends Binding>
java.lang.Object
org.glassfish.jersey.internal.inject.Binding<T,D>
- Type Parameters:
T- type of the bean described by this injection binding.D- concrete injection binding implementation type.
- Direct Known Subclasses:
ClassBinding, InjectionResolverBinding, InstanceBinding, SupplierClassBinding, SupplierInstanceBinding
Abstract injection binding description of a bean.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<AliasBinding> private Stringprivate Stringprivate Booleanprivate Booleanprivate final Set<Annotation> private Integerprivate Class<? extends Annotation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds service's alias.analyzeWith(String analyzer) Adds service's analyzer.(package private) DAdds service's type.Gets service's aliases.Gets service's analyzer.Gets service's contracts.Gets service's type.getName()Gets service's name.Gets service's qualifiers.getRank()Gets rank of the service.Class<? extends Annotation> getScope()Gets service's scope.in(Class<? extends Annotation> scopeAnnotation) Adds service's scope.Gets information whether the service is proxiable.Gets information whether the service creates the proxy for the same scope.Adds service's name.proxy(boolean proxiable) Adds information about proxy creation.proxyForSameScope(boolean proxyForSameScope) Adds information about proxy creation when the service is in the same scope.qualifiedBy(Annotation annotation) Adds service's qualifier.voidranked(int rank) Adds service's rank.Adds service's contract.Adds service's contract.to(Collection<Class<? super T>> contracts) Adds service's contracts.to(javax.ws.rs.core.GenericType<?> contract) Adds service's contract.
-
Field Details
-
contracts
-
qualifiers
-
aliases
-
scope
-
name
-
implementationType
-
analyzer
-
proxiable
-
proxyForSameScope
-
ranked
-
-
Constructor Details
-
Binding
public Binding()
-
-
Method Details
-
isProxiable
Gets information whether the service is proxiable.- Returns:
trueif the service is proxiable.
-
isProxiedForSameScope
Gets information whether the service creates the proxy for the same scope.- Returns:
trueif the service creates the proxy for the same scop.
-
getRank
-
getContracts
-
getQualifiers
-
getScope
-
getName
-
getImplementationType
-
getAnalyzer
-
getAliases
-
analyzeWith
-
to
Adds service's contracts.- Returns:
- current instance.
-
to
-
to
Adds service's contract.- Returns:
- current instance.
-
to
-
qualifiedBy
-
in
Adds service's scope.- Returns:
- current instance.
-
named
-
addAlias
Adds service's alias.- Parameters:
contract- contract of the alias.- Returns:
- instance of a new alias for this binding descriptor that can be further specified.
-
proxy
-
proxyForSameScope
Adds information about proxy creation when the service is in the same scope.- Returns:
- current instance.
-
ranked
public void ranked(int rank) Adds service's rank. -
asType
-