Class Affinity

    • Field Detail

      • NONE

        public static final Affinity NONE
        The specification for no particular affinity.
      • LOCAL

        public static final Affinity LOCAL
        The specification for the local Enterprise Beans environment.
      • WEAK_AFFINITY_CONTEXT_KEY

        public static final String WEAK_AFFINITY_CONTEXT_KEY
        Key which will be used in the invocation context data for passing around the weak affinity associated with a Enterprise Bean.
        See Also:
        Constant Field Values
    • Method Detail

      • forUri

        public static Affinity forUri​(URI uri)
        Get the affinity specification corresponding to the given URI.
        Parameters:
        uri - the URI
        Returns:
        the affinity specification (not null)
      • getUri

        public abstract URI getUri()
        Get the associated URI.
        Returns:
        the associated URI (not null)
      • equals

        public abstract boolean equals​(Affinity other)
      • hashCode

        public abstract int hashCode()
        Overrides:
        hashCode in class Object