Class InterceptorBindings
java.lang.Object
org.microbean.producer.InterceptorBindings
A utility class providing methods that work with interceptor bindings.
- Author:
- Laird Nelson
-
Method Summary
Modifier and TypeMethodDescriptionstatic final org.microbean.attributes.AttributesReturns aAttributesrepresenting the any interceptor binding.static final booleananyInterceptorBinding(org.microbean.attributes.Attributes a) Returnstrueif and only if the suppliedAttributesrepresents the any interceptor binding.static final org.microbean.attributes.AttributesReturns aAttributesrepresenting the interceptor binding (meta-) interceptor binding.static final booleaninterceptorBinding(org.microbean.attributes.Attributes a) Returnstrueif and only if the suppliedAttributesis itself aAttributesthat can be used to designate otherAttributesinstances as interceptor bindings, or aAttributesso designated.static final List<org.microbean.attributes.Attributes> interceptorBindings(Collection<? extends org.microbean.attributes.Attributes> c) Given aCollectionofAttributess, returns an immutableListconsisting of thoseAttributesinstances that are deemed to be interceptor bindings.static final org.microbean.attributes.AttributesReturns aAttributesrepresenting a target class interceptor binding.static final booleantargetClassInterceptorBinding(org.microbean.attributes.Attributes a) Returnstrueif and only if the suppliedAttributesis a target class interceptor binding.
-
Method Details
-
anyInterceptorBinding
Returns aAttributesrepresenting the any interceptor binding.- Returns:
- a
Attributesrepresenting the any interceptor binding; nevernull
-
anyInterceptorBinding
Returnstrueif and only if the suppliedAttributesrepresents the any interceptor binding.- Parameters:
a- aAttributes; may benullin which casefalsewill be returned- Returns:
trueif and only if the suppliedAttributesrepresents the any interceptor binding- See Also:
-
interceptorBinding
Returns aAttributesrepresenting the interceptor binding (meta-) interceptor binding.- Returns:
- a
Attributesrepresenting the interceptor binding (meta-) interceptor binding; nevernull
-
interceptorBinding
Returnstrueif and only if the suppliedAttributesis itself aAttributesthat can be used to designate otherAttributesinstances as interceptor bindings, or aAttributesso designated.- Parameters:
a- aAttributes; may benullin which casefalsewill be returned- Returns:
trueif and only if the suppliedAttributesis itself aAttributesthat can be used to designate otherAttributesinstances as interceptor bindings, or aAttributesso designated- See Also:
-
interceptorBindings
public static final List<org.microbean.attributes.Attributes> interceptorBindings(Collection<? extends org.microbean.attributes.Attributes> c) Given aCollectionofAttributess, returns an immutableListconsisting of thoseAttributesinstances that are deemed to be interceptor bindings.- Parameters:
c- aCollection; must not benull- Returns:
- a
Listof interceptor bindings - Throws:
NullPointerException- ifcisnull
-
targetClassInterceptorBinding
Returns aAttributesrepresenting a target class interceptor binding.- Parameters:
type- the target class name; must not benull- Returns:
- a
Attributesrepresenting a target class interceptor binding; nevernull - Throws:
NullPointerException- iftypeisnull
-
targetClassInterceptorBinding
Returnstrueif and only if the suppliedAttributesis a target class interceptor binding.- Parameters:
a- aAttributes; must not benull- Returns:
trueif and only if the suppliedAttributesis a target class interceptor binding- Throws:
NullPointerException- ifaisnull
-