Class InterceptorBindings
java.lang.Object
org.microbean.bean.InterceptorBindings
-
Method Summary
Modifier and TypeMethodDescriptionstatic final NamedAttributeMap<String> Returns aNamedAttributeMaprepresenting the any interceptor binding.static final booleanReturnstrueif and only if the suppliedNamedAttributeMaprepresents the any interceptor binding.static final NamedAttributeMap<String> Returns aNamedAttributeMaprepresenting the interceptor binding (meta-) interceptor binding.static final booleanReturnstrueif and only if the suppliedNamedAttributeMapis itself aNamedAttributeMapthat can be used to designate otherNamedAttributeMaps as interceptor bindings, or aNamedAttributeMapso designated.static final List<NamedAttributeMap<?>> interceptorBindings(Collection<? extends NamedAttributeMap<?>> c) Given aCollectionofNamedAttributeMaps, returns an immutableListconsisting of thoseNamedAttributeMapinstances that are deemed to be interceptor bindings.static final NamedAttributeMap<?> Returns aNamedAttributeMaprepresenting a target class interceptor binding.static final booleanReturnstrueif and only if the suppliedNamedAttributeMapis a target class interceptor binding.
-
Method Details
-
anyInterceptorBinding
Returns aNamedAttributeMaprepresenting the any interceptor binding.- Returns:
- a
NamedAttributeMaprepresenting the any interceptor binding; nevernull
-
anyInterceptorBinding
Returnstrueif and only if the suppliedNamedAttributeMaprepresents the any interceptor binding.- Parameters:
nam- aNamedAttributeMap; may benullin which casefalsewill be returned- Returns:
trueif and only if the suppliedNamedAttributeMaprepresents the any interceptor binding- See Also:
-
interceptorBinding
Returns aNamedAttributeMaprepresenting the interceptor binding (meta-) interceptor binding.- Returns:
- a
NamedAttributeMaprepresenting the interceptor binding (meta-) interceptor binding; nevernull
-
interceptorBinding
Returnstrueif and only if the suppliedNamedAttributeMapis itself aNamedAttributeMapthat can be used to designate otherNamedAttributeMaps as interceptor bindings, or aNamedAttributeMapso designated.- Parameters:
a- aNamedAttributeMap; may benullin which casefalsewill be returned- Returns:
trueif and only if the suppliedNamedAttributeMapis itself aNamedAttributeMapthat can be used to designate otherNamedAttributeMaps as interceptor bindings, or aNamedAttributeMapso designated- See Also:
-
interceptorBindings
public static final List<NamedAttributeMap<?>> interceptorBindings(Collection<? extends NamedAttributeMap<?>> c) Given aCollectionofNamedAttributeMaps, returns an immutableListconsisting of thoseNamedAttributeMapinstances that are deemed to be interceptor bindings.- Parameters:
c- aCollection; must not benull- Returns:
- a
Listof interceptor bindings - Throws:
NullPointerException- ifcisnull
-
targetClassInterceptorBinding
Returns aNamedAttributeMaprepresenting a target class interceptor binding.- Parameters:
type- the target class name; must not benull- Returns:
- a
NamedAttributeMaprepresenting a target class interceptor binding; nevernull - Throws:
NullPointerException- iftypeisnull
-
targetClassInterceptorBinding
Returnstrueif and only if the suppliedNamedAttributeMapis a target class interceptor binding.- Parameters:
nam- aNamedAttributeMap; must not benull- Returns:
trueif and only if the suppliedNamedAttributeMapis a target class interceptor binding- Throws:
NullPointerException- ifnamisnull
-