Class InterceptorBindings

java.lang.Object
org.microbean.producer.InterceptorBindings

public final class InterceptorBindings extends Object
A utility class providing methods that work with interceptor bindings.
Author:
Laird Nelson
  • Method Summary

    Modifier and Type
    Method
    Description
    static final org.microbean.attributes.Attributes
    Returns a Attributes representing the any interceptor binding.
    static final boolean
    anyInterceptorBinding(org.microbean.attributes.Attributes a)
    Returns true if and only if the supplied Attributes represents the any interceptor binding.
    static final org.microbean.attributes.Attributes
    Returns a Attributes representing the interceptor binding (meta-) interceptor binding.
    static final boolean
    interceptorBinding(org.microbean.attributes.Attributes a)
    Returns true if and only if the supplied Attributes is itself a Attributes that can be used to designate other Attributes instances as interceptor bindings, or a Attributes so designated.
    static final List<org.microbean.attributes.Attributes>
    interceptorBindings(Collection<? extends org.microbean.attributes.Attributes> c)
    Given a Collection of Attributess, returns an immutable List consisting of those Attributes instances that are deemed to be interceptor bindings.
    static final org.microbean.attributes.Attributes
    Returns a Attributes representing a target class interceptor binding.
    static final boolean
    targetClassInterceptorBinding(org.microbean.attributes.Attributes a)
    Returns true if and only if the supplied Attributes is a target class interceptor binding.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • anyInterceptorBinding

      public static final org.microbean.attributes.Attributes anyInterceptorBinding()
      Returns a Attributes representing the any interceptor binding.
      Returns:
      a Attributes representing the any interceptor binding; never null
    • anyInterceptorBinding

      public static final boolean anyInterceptorBinding(org.microbean.attributes.Attributes a)
      Returns true if and only if the supplied Attributes represents the any interceptor binding.
      Parameters:
      a - a Attributes; may be null in which case false will be returned
      Returns:
      true if and only if the supplied Attributes represents the any interceptor binding
      See Also:
    • interceptorBinding

      public static final org.microbean.attributes.Attributes interceptorBinding()
      Returns a Attributes representing the interceptor binding (meta-) interceptor binding.
      Returns:
      a Attributes representing the interceptor binding (meta-) interceptor binding; never null
    • interceptorBinding

      public static final boolean interceptorBinding(org.microbean.attributes.Attributes a)
      Returns true if and only if the supplied Attributes is itself a Attributes that can be used to designate other Attributes instances as interceptor bindings, or a Attributes so designated.
      Parameters:
      a - a Attributes; may be null in which case false will be returned
      Returns:
      true if and only if the supplied Attributes is itself a Attributes that can be used to designate other Attributes instances as interceptor bindings, or a Attributes so designated
      See Also:
    • interceptorBindings

      public static final List<org.microbean.attributes.Attributes> interceptorBindings(Collection<? extends org.microbean.attributes.Attributes> c)
      Given a Collection of Attributess, returns an immutable List consisting of those Attributes instances that are deemed to be interceptor bindings.
      Parameters:
      c - a Collection; must not be null
      Returns:
      a List of interceptor bindings
      Throws:
      NullPointerException - if c is null
    • targetClassInterceptorBinding

      public static final org.microbean.attributes.Attributes targetClassInterceptorBinding(String type)
      Returns a Attributes representing a target class interceptor binding.
      Parameters:
      type - the target class name; must not be null
      Returns:
      a Attributes representing a target class interceptor binding; never null
      Throws:
      NullPointerException - if type is null
    • targetClassInterceptorBinding

      public static final boolean targetClassInterceptorBinding(org.microbean.attributes.Attributes a)
      Returns true if and only if the supplied Attributes is a target class interceptor binding.
      Parameters:
      a - a Attributes; must not be null
      Returns:
      true if and only if the supplied Attributes is a target class interceptor binding
      Throws:
      NullPointerException - if a is null